forked from CGM_Public/pretix_original
Correctly show infinite quotas in backend
This commit is contained in:
@@ -640,7 +640,7 @@ class QuotaView(ChartContainingView, DetailView):
|
|||||||
]
|
]
|
||||||
|
|
||||||
sum_values = sum([d['value'] for d in data if d['sum']])
|
sum_values = sum([d['value'] for d in data if d['sum']])
|
||||||
s = self.object.size - sum_values if self.object.size is not None else 0
|
s = self.object.size - sum_values if self.object.size is not None else ugettext('Infinite')
|
||||||
|
|
||||||
data.append({
|
data.append({
|
||||||
'label': ugettext('Available quota'),
|
'label': ugettext('Available quota'),
|
||||||
|
|||||||
Reference in New Issue
Block a user