profile change
This commit is contained in:
SDE
2023-10-22 16:46:25 +03:00
parent f0e8cb5101
commit 19621752b5
2 changed files with 40 additions and 8 deletions

View File

@@ -29,7 +29,22 @@ class RegistrationForm(forms.Form):
tel = forms.CharField()
agreement = forms.BooleanField(initial=False, required=True)
# def clean(self):
def clean(self):
pass
# cleaned_data = super().clean()
# for item in self.changed_data:
# if item in self.data:
#
#
# cc_myself = cleaned_data.get("cc_myself")
# subject = cleaned_data.get("subject")
#
# if cc_myself and subject:
# # Only do something if both fields are valid so far.
# if "help" not in subject:
# raise ValidationError(
# "Did not send for 'help' in the subject despite " "CC'ing yourself."
# )