Fixes #798 (in a very basic way)

This commit is contained in:
Jan-Frederik Rieckers
2018-03-07 19:50:23 +01:00
committed by Raphael Michel
parent b2402cdd39
commit 6f9f47bfe3

View File

@@ -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