forked from CGM_Public/pretix_original
Question form: Guess default country
This commit is contained in:
@@ -314,7 +314,7 @@ class BaseQuestionsForm(forms.Form):
|
|||||||
help_text=help_text,
|
help_text=help_text,
|
||||||
widget=forms.Select,
|
widget=forms.Select,
|
||||||
empty_label='',
|
empty_label='',
|
||||||
initial=initial.answer if initial else None,
|
initial=initial.answer if initial else guess_country(event),
|
||||||
)
|
)
|
||||||
elif q.type == Question.TYPE_CHOICE:
|
elif q.type == Question.TYPE_CHOICE:
|
||||||
field = forms.ModelChoiceField(
|
field = forms.ModelChoiceField(
|
||||||
|
|||||||
Reference in New Issue
Block a user