Commit 0847bc5e by Chris Dodge

pep8/pylint violations fixes

parent 00710f75
......@@ -404,8 +404,8 @@ def cas_login(request, next_page=None, required=False):
if request.user.is_authenticated():
user = request.user
if not UserProfile.objects.filter(user=user):
up = UserProfile(name=user.username, user=user)
up.save()
user_profile = UserProfile(name=user.username, user=user)
user_profile.save()
return ret
......
......@@ -865,4 +865,3 @@ if MITX_FEATURES.get('AUTH_USE_CAS'):
)
INSTALLED_APPS += ('django_cas',)
MIDDLEWARE_CLASSES += ('django_cas.middleware.CASMiddleware',)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment