More useful titles in select2 widget for seats

This commit is contained in:
Raphael Michel
2019-12-11 13:05:04 +01:00
parent 49b73fc096
commit 6d3ccc0182

View File

@@ -251,7 +251,7 @@ def seat_select2(request, **kwargs):
'results': [
{
'id': e.pk,
'text': '{} ({})'.format(e.name, str(e.product)),
'text': '{} ({})'.format(str(e), str(e.product)),
'product': e.product_id,
'event': str(e.subevent) if e.subevent else ''