mirror of
https://github.com/pretix/pretix.git
synced 2026-08-12 11:07:02 +00:00
Apply suggestions from review
This commit is contained in:
@@ -757,7 +757,7 @@ def get_program_times(op: OrderPosition, ev: Event):
|
||||
pt.end.astimezone(ev.timezone),
|
||||
as_html=False
|
||||
),
|
||||
', ' + normalize_newlines(str(pt.location)).replace('\n', ', ') if pt.location else '',
|
||||
(', ' + normalize_newlines(str(pt.location)).replace('\n', ', ')) if pt.location else '',
|
||||
])
|
||||
return '\n'.join(''.join(l) for l in ptstr)
|
||||
|
||||
|
||||
@@ -1354,7 +1354,7 @@ class ItemProgramTimeForm(I18nModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields['end'].widget.attrs['data-date-after'] = '#id_{prefix}-start_0'.format(prefix=self.prefix)
|
||||
self.fields['location'].widget.attrs['rows'] = '1'
|
||||
self.fields['location'].widget.attrs['rows'] = '3'
|
||||
self.fields['location'].widget.attrs['placeholder'] = _(
|
||||
'Sample Conference Center, Heidelberg, Germany'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user