summaryrefslogtreecommitdiff
path: root/coip/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'coip/middleware.py')
-rw-r--r--coip/middleware.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/coip/middleware.py b/coip/middleware.py
index b4af835..d1ca1f6 100644
--- a/coip/middleware.py
+++ b/coip/middleware.py
@@ -5,6 +5,8 @@ Created on Dec 13, 2010
'''
from django.core.exceptions import ImproperlyConfigured
from coip.apps.userprofile.models import UserProfile
+import logging
+from pprint import pformat
class UserMappingMiddleware(object):
'''
@@ -16,6 +18,7 @@ class UserMappingMiddleware(object):
raise ImproperlyConfigured("Place before RemoteUserMiddleware")
username = request.META['REMOTE_USER']
+ logging.warn(pformat(request.META))
qs = UserProfile.objects.filter(user__username=username,primary=True)
if qs:
profile = qs[0]