mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 05:26:28 +02:00
We have basic validation.....but there is a snag with hidden fields
This commit is contained in:
parent
b61d3936b5
commit
14d0876ed4
3 changed files with 36 additions and 12 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue