mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 01:35:22 +02:00
Temp Fix full name field
This commit is contained in:
parent
3a47a7a61c
commit
5a60388a9c
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,13 @@ from django.core.validators import MaxLengthValidator
|
|||
class ContactForm(forms.Form):
|
||||
"""Form for adding or editing a contact"""
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super().clean()
|
||||
# Remove the full name property
|
||||
if "full_name" in cleaned_data:
|
||||
del cleaned_data["full_name"]
|
||||
return cleaned_data
|
||||
|
||||
def to_database(self, obj):
|
||||
"""
|
||||
Adds this form's cleaned data to `obj` and saves `obj`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue