Coding style overhaul for Python files (PEP8 conformant). Removed buggy csstidy pytho...
[redakcja.git] / apps / django_cas / middleware.py
old mode 100755 (executable)
new mode 100644 (file)
index e09f063..35fd0d5
@@ -12,6 +12,7 @@ from django_cas.views import login as cas_login, logout as cas_logout
 
 __all__ = ['CASMiddleware']
 
+
 class CASMiddleware(object):
     """Middleware that allows CAS authentication on admin pages"""
 
@@ -22,7 +23,7 @@ class CASMiddleware(object):
                  "middleware to be installed. Edit your MIDDLEWARE_CLASSES "
                  "setting to insert 'django.contrib.auth.middleware."
                  "AuthenticationMiddleware'.")
-        assert hasattr(request, 'user'), error
+        assert hasattr(request, 'user'), error
 
     def process_view(self, request, view_func, view_args, view_kwargs):
         """Forwards unauthenticated requests to the admin page to the CAS