From ea1b89fdb26a09d12c59a092742c215b4de81ed9 Mon Sep 17 00:00:00 2001 From: igorkorenfeld Date: Wed, 7 Jun 2023 17:43:46 -0400 Subject: [PATCH] Remove commented out code --- src/registrar/forms/domain.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py index 62c50add5..6a1077672 100644 --- a/src/registrar/forms/domain.py +++ b/src/registrar/forms/domain.py @@ -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 - """