Apply suggestions from review

This commit is contained in:
Phin Wolkwitz
2026-04-27 15:08:02 +02:00
parent e3b74c1229
commit 6369d74e1d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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'
)