Redesign empty statistics page

This commit is contained in:
Raphael Michel
2016-05-07 16:25:27 +02:00
parent c0da0db59c
commit 8edf9a7034
3 changed files with 46 additions and 25 deletions

View File

@@ -114,4 +114,6 @@ class IndexView(EventPermissionRequiredMixin, TemplateView):
ctx['rev_data'] = json.dumps(data)
cache.set('statistics_rev_data', ctx['rev_data'])
ctx['has_orders'] = self.request.event.orders.exists()
return ctx