We have basic validation.....but there is a snag with hidden fields

This commit is contained in:
CocoByte 2024-10-21 22:28:09 -06:00
parent b61d3936b5
commit 14d0876ed4
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
3 changed files with 36 additions and 12 deletions

View file

@ -135,10 +135,6 @@ class NewMemberForm(forms.ModelForm):
model = User
fields = ['email'] #, 'grade', 'sport']
def __init__(self, *args, **kwargs):
super(NewMemberForm, self).__init__(*args, **kwargs)
# self.fields['sport'].choices = []
def clean(self):
cleaned_data = super().clean()