mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix bug in 832235411
This commit is contained in:
@@ -24,6 +24,8 @@ from django import template
|
|||||||
register = template.Library()
|
register = template.Library()
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.filter
|
||||||
def oneline(value):
|
def oneline(value):
|
||||||
return ', '.join([l.strip() for l in value.splitlines() if l and l.strip()])
|
if not value:
|
||||||
|
return ''
|
||||||
|
return ', '.join([l.strip() for l in str(value).splitlines() if l and l.strip()])
|
||||||
|
|||||||
Reference in New Issue
Block a user