diff options
Diffstat (limited to 'coip')
-rw-r--r-- | coip/apps/userprofile/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coip/apps/userprofile/utils.py b/coip/apps/userprofile/utils.py index 7ae477f..92d839c 100644 --- a/coip/apps/userprofile/utils.py +++ b/coip/apps/userprofile/utils.py @@ -14,7 +14,7 @@ def request_profile(request): if request.META.has_key('REMOTE_USER'): return UserProfile.objects.get(identifier=request.META['REMOTE_USER']) else: - return UserProfile.objects.get(user=request.user.username) + return UserProfile.objects.get(user=request.user) else: return None |