mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Correctly set timezone when cloning events
This commit is contained in:
@@ -149,7 +149,8 @@ class EventWizardBasicsForm(I18nModelForm):
|
|||||||
self.user = kwargs.pop('user')
|
self.user = kwargs.pop('user')
|
||||||
kwargs.pop('session')
|
kwargs.pop('session')
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.initial['timezone'] = get_current_timezone_name()
|
if 'timezone' not in self.initial:
|
||||||
|
self.initial['timezone'] = get_current_timezone_name()
|
||||||
self.fields['locale'].choices = [(a, b) for a, b in settings.LANGUAGES if a in self.locales]
|
self.fields['locale'].choices = [(a, b) for a, b in settings.LANGUAGES if a in self.locales]
|
||||||
self.fields['location'].widget.attrs['rows'] = '3'
|
self.fields['location'].widget.attrs['rows'] = '3'
|
||||||
self.fields['location'].widget.attrs['placeholder'] = _(
|
self.fields['location'].widget.attrs['placeholder'] = _(
|
||||||
|
|||||||
Reference in New Issue
Block a user