mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
Remove commented out code
This commit is contained in:
parent
6489218d82
commit
ea1b89fdb2
1 changed files with 0 additions and 7 deletions
|
@ -141,10 +141,3 @@ class DomainOrgNameAddressForm(forms.ModelForm):
|
|||
self.fields[field_name].required = True
|
||||
self.fields["state_territory"].widget.attrs.pop("maxlength", None)
|
||||
self.fields["zipcode"].widget.attrs.pop("maxlength", None)
|
||||
"""
|
||||
def clean(self):
|
||||
data = super().clean()
|
||||
if not re.match(r"^[0-9]{5}(?:-[0-9]{4})?$|^$", data["zipcode"]):
|
||||
raise forms.ValidationError("Enter a zip code in the form of 12345 or 12345-6789.", code="invalid")
|
||||
return self.cleaned_data
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue