Question form: Guess default country

This commit is contained in:
Raphael Michel
2020-03-23 16:44:25 +01:00
parent f84903ae27
commit 6da63e0169

View File

@@ -314,7 +314,7 @@ class BaseQuestionsForm(forms.Form):
help_text=help_text,
widget=forms.Select,
empty_label='',
initial=initial.answer if initial else None,
initial=initial.answer if initial else guess_country(event),
)
elif q.type == Question.TYPE_CHOICE:
field = forms.ModelChoiceField(