Commit 29ee9325 authored by fred's avatar fred

fix jsonresponse usage to match what to_json produced

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