mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 05:54:11 +02:00
Process of removal security email from the codes
This commit is contained in:
parent
e29482f0c4
commit
1441044415
4 changed files with 2 additions and 33 deletions
|
@ -28,8 +28,10 @@ class RegistrarForm(forms.Form):
|
|||
def __init__(self, *args, **kwargs):
|
||||
kwargs.setdefault("label_suffix", "")
|
||||
# save a reference to an application object
|
||||
archived = kwargs.pop('archived', None)
|
||||
self.application = kwargs.pop("application", None)
|
||||
super(RegistrarForm, self).__init__(*args, **kwargs)
|
||||
self.fields['archived'] = forms.BooleanField(initial=archived, required=False)
|
||||
|
||||
def to_database(self, obj: DomainApplication | Contact):
|
||||
"""
|
||||
|
@ -672,18 +674,6 @@ class NoOtherContactsForm(RegistrarForm):
|
|||
)
|
||||
|
||||
|
||||
class SecurityEmailForm(RegistrarForm):
|
||||
security_email = forms.EmailField(
|
||||
required=False,
|
||||
label="Security email for public use",
|
||||
error_messages={
|
||||
"invalid": (
|
||||
"Enter an email address in the required format, like name@example.com."
|
||||
)
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
class AnythingElseForm(RegistrarForm):
|
||||
anything_else = forms.CharField(
|
||||
required=False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue