mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fixes #798 (in a very basic way)
This commit is contained in:
committed by
Raphael Michel
parent
b2402cdd39
commit
6f9f47bfe3
@@ -158,6 +158,9 @@ class AddOnsForm(forms.Form):
|
||||
n += ' – {}'.format(_('SOLD OUT'))
|
||||
elif avail[0] < 100:
|
||||
n += ' – {}'.format(_('Currently unavailable'))
|
||||
else:
|
||||
if avail[1] is not None and event.settings.show_quota_left:
|
||||
n += ' – {}'.format(_('%(num)s currently available') % {'num': avail[1]})
|
||||
|
||||
return n
|
||||
|
||||
|
||||
Reference in New Issue
Block a user