From 415ebec8797b2da6044254d8523851fca905982d Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Tue, 29 Jan 2013 10:24:29 -0500 Subject: [PATCH] renaming whitelist to is_whitelisted --- lms/djangoapps/certificates/queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/certificates/queue.py b/lms/djangoapps/certificates/queue.py index 2150f1066c..d4e96f85be 100644 --- a/lms/djangoapps/certificates/queue.py +++ b/lms/djangoapps/certificates/queue.py @@ -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