From 626e332886f479d6c3e9a2dea2323b8cdca40235 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 30 Jun 2020 10:04:45 +0200 Subject: [PATCH] Fix issue displaying unlimited quota --- src/pretix/control/views/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/views/item.py b/src/pretix/control/views/item.py index 499e7562ea..8692f6acec 100644 --- a/src/pretix/control/views/item.py +++ b/src/pretix/control/views/item.py @@ -826,7 +826,7 @@ class QuotaView(ChartContainingView, DetailView): }) for d in data: - if d.get('value', 0) < 0: + if isinstance(d.get('value', 0), int) and d.get('value', 0) < 0: d['value_abs'] = abs(d['value']) ctx['quota_chart_data'] = json.dumps([r for r in data if r.get('sum') and r['value'] >= 0]) ctx['quota_table_rows'] = list(data)