mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix possible TypeError
This commit is contained in:
@@ -89,7 +89,7 @@ class OrderPositionChangeForm(forms.Form):
|
|||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
choices = []
|
choices = []
|
||||||
for i in instance.order.event.items.prefetch_related('variations').all():
|
for i in instance.order.event.items.prefetch_related('variations').all():
|
||||||
pname = i.name
|
pname = str(i.name)
|
||||||
if not i.is_available():
|
if not i.is_available():
|
||||||
pname += ' ({})'.format(_('inactive'))
|
pname += ' ({})'.format(_('inactive'))
|
||||||
variations = list(i.variations.all())
|
variations = list(i.variations.all())
|
||||||
|
|||||||
Reference in New Issue
Block a user