Commit 29ee9325 authored by fred's avatar fred
Browse files

fix jsonresponse usage to match what to_json produced

parent d439192c
......@@ -143,4 +143,4 @@ newsletter_send = NewsletterSendView.as_view()
def stats(request) :
return JsonResponse({'registered': Subscriber.objects.filter(is_registered=True).count()})
return JsonResponse({'data': {'registered': Subscriber.objects.filter(is_registered=True).count()}})
Supports Markdown
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