renmaing unusual to unicode, fixing syntax and removing id in

enrolled_students query
This commit is contained in:
John Jarvis
2012-11-09 18:51:31 -05:00
parent 2c41b94d11
commit d6403fe34c
2 changed files with 1 additions and 8 deletions

View File

@@ -7,13 +7,6 @@ from django.contrib.auth.models import User
class Command(BaseCommand):
help = """
Find all students that have need certificates
and put certificate requests on the queue
"""
def handle(self, *args, **options):
help = """
Find all students that have need certificates
and put certificate requests on the queue
@@ -24,7 +17,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
course_id = 'BerkeleyX/CS169.1x/2012_Fall'
enrolled_students = User.objects.filter(id=444894,
enrolled_students = User.objects.filter(
courseenrollment__course_id=course_id).prefetch_related(
"groups").order_by('username')
xq = XQueueCertInterface()