From cd6b1a2327dcffd16b146d9f88bb83651fb3a2db Mon Sep 17 00:00:00 2001
From: Raphael Michel
Date: Thu, 24 Aug 2017 16:12:50 +0200
Subject: [PATCH] Allow subevent filtering in dashboard
---
src/pretix/control/signals.py | 1 +
.../fragment_subevent_choice_simple.html | 2 +-
.../templates/pretixcontrol/event/index.html | 7 ++-
src/pretix/control/views/dashboards.py | 48 +++++++++++++------
4 files changed, 42 insertions(+), 16 deletions(-)
diff --git a/src/pretix/control/signals.py b/src/pretix/control/signals.py
index cf3e01108..86734c0eb 100644
--- a/src/pretix/control/signals.py
+++ b/src/pretix/control/signals.py
@@ -94,6 +94,7 @@ should return a list of dictionaries, where each dictionary can have the keys:
* link (str, optional, if the full widget should be a link)
As with all plugin signals, the ``sender`` keyword argument will contain the event.
+An additional keyword argument ``subevent`` *can* contain a sub-event.
"""
user_dashboard_widgets = Signal(
diff --git a/src/pretix/control/templates/pretixcontrol/event/fragment_subevent_choice_simple.html b/src/pretix/control/templates/pretixcontrol/event/fragment_subevent_choice_simple.html
index a47dff1b8..ec961ca88 100644
--- a/src/pretix/control/templates/pretixcontrol/event/fragment_subevent_choice_simple.html
+++ b/src/pretix/control/templates/pretixcontrol/event/fragment_subevent_choice_simple.html
@@ -9,5 +9,5 @@
{% endfor %}
-
+