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.
This commit is contained in:
Joe Blaylock
2014-01-17 17:43:09 -08:00
parent 7f74297810
commit 300501b138

View File

@@ -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)