renaming whitelist to is_whitelisted

This commit is contained in:
John Jarvis
2013-01-29 10:24:29 -05:00
parent dbc0f353c5
commit 415ebec879

View File

@@ -159,10 +159,10 @@ class XQueueCertInterface(object):
user=student, course_id=course_id)
grade = grades.grade(student, self.request, course)
whitelist = self.whitelist.filter(
is_whitelisted = self.whitelist.filter(
user=student, course_id=course_id, whitelist=True).exists()
if whitelist or grade['grade'] is not None:
if is_whitelisted or grade['grade'] is not None:
# check to see whether the student is on the
# the embargoed country restricted list