Fix PEP8: E125 continuation line

does not distinguish itself from next logical line
This commit is contained in:
stv
2014-11-08 18:13:29 -08:00
parent aba9b3b96e
commit 2ce5a6ceed
7 changed files with 7 additions and 7 deletions

View File

@@ -154,7 +154,7 @@ def _has_access_course_desc(user, action, course):
# if using registration method to restrict (say shibboleth)
if settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
if user is not None and user.is_authenticated() and \
ExternalAuthMap.objects.filter(user=user, external_domain=course.enrollment_domain):
ExternalAuthMap.objects.filter(user=user, external_domain=course.enrollment_domain):
debug("Allow: external_auth of " + course.enrollment_domain)
reg_method_ok = True
else: