Fix dashboard widgets to show correct waiting list numbers

This commit is contained in:
Raphael Michel
2017-02-17 09:44:38 +01:00
parent c3fb033d33
commit 7c687ee397

View File

@@ -91,7 +91,7 @@ def base_widgets(sender, **kwargs):
def waitinglist_widgets(sender, **kwargs): def waitinglist_widgets(sender, **kwargs):
widgets = [] widgets = []
wles = WaitingListEntry.objects.filter(event=sender) wles = WaitingListEntry.objects.filter(event=sender, voucher__isnull=True)
if wles.count(): if wles.count():
quota_cache = {} quota_cache = {}
itemvar_cache = {} itemvar_cache = {}