Commit 84b8d4be by John Jarvis

switching to dot notation for GeneratedCertificate objects

parent fffdc741
......@@ -4,7 +4,7 @@ from certificates.models import GeneratedCertificate
class Command(BaseCommand):
def handle(self, *args, **options):
users = GeneratedCertificate.objects.filter(
download_url = None ).values()
user_output = [{'user_id':user['user_id'], 'name':user['name']}
download_url = None )
user_output = [{'user_id':user.user_id, 'name':user.name}
for user in users]
self.stdout.write(dumps(user_output) + "\n")
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