Commit 442fb6e8 by Calen Pennington

Pass the cursor, rather than the output of cursor.execute, to dictfetchall

parent aa215bc3
......@@ -25,7 +25,7 @@ def dashboard(request):
from django.db import connection
cursor = connection.cursor()
results = dictfetchall(cursor.execute(query))
cursor.execute(query)
results = dictfetchall(cursor)
return HttpResponse(json.dumps(results, indent=4))
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