Commit 300501b1 by Joe Blaylock

Certs - bugfix cert_whitelist output

* output after cert_whitelist -a or -d purported to be the whitelist entries
  for the requested course, but in fact were all of the entries in every
  course. This commit fixes that.
parent 7f742978
......@@ -67,7 +67,7 @@ class Command(BaseCommand):
cert_whitelist.whitelist = False
cert_whitelist.save()
whitelist = CertificateWhitelist.objects.all()
whitelist = CertificateWhitelist.objects.filter(course_id=course_id)
print "User whitelist for course {0}:\n{1}".format(course_id,
'\n'.join(["{0} {1} {2}".format(
u.user.username, u.user.email, u.whitelist)
......
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