diff --git a/main/forms.py b/main/forms.py index d3f378f459d8eed4c506488f3f745eab629f3085..cdd5604a5a797d935ef50b0f84f43488c952d8ae 100644 --- a/main/forms.py +++ b/main/forms.py @@ -72,7 +72,12 @@ class CareerSubmissionForm(forms.Form): max_length=256, required=True, widget=forms.TextInput( - attrs={"placeholder": "Jméno", "class": "lg:w-auto w-full"} + attrs={ + "placeholder": "Jméno", + "class": "lg:w-auto w-full", + "value": "", + "autocomplete": "", + } ), ) @@ -81,7 +86,12 @@ class CareerSubmissionForm(forms.Form): max_length=256, required=True, widget=forms.TextInput( - attrs={"placeholder": "Příjmení", "class": "lg:w-auto w-full"} + attrs={ + "placeholder": "Příjmení", + "class": "lg:w-auto w-full", + "value": "", + "autocomplete": "", + } ), ) @@ -89,13 +99,26 @@ class CareerSubmissionForm(forms.Form): min_length=1, max_length=256, required=True, - widget=forms.EmailInput(attrs={"placeholder": "Email", "class": "w-full"}), + widget=forms.EmailInput( + attrs={ + "placeholder": "Email", + "class": "w-full", + "value": "", + "autocomplete": "", + } + ), ) phone = forms.IntegerField( required=True, widget=forms.NumberInput( - attrs={"type": "tel", "placeholder": "Telefon", "class": "w-full"} + attrs={ + "type": "tel", + "placeholder": "Telefon", + "class": "w-full", + "value": "", + "autocomplete": "", + } ), ) diff --git a/main/models.py b/main/models.py index 2735af40de6fe4a9ed07e435ec45cd0bd96ca491..034e6e6e345daffec723c50714109398e5c67ffc 100644 --- a/main/models.py +++ b/main/models.py @@ -610,8 +610,9 @@ Odeslání přihlášky selhalo: {errors} """, ) - else: - form = CareerSubmissionForm() + + # Recreate form either way, since we don't want it to be prepopulated with data. + form = CareerSubmissionForm() return render( request,