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