Skip to content

Commit

Permalink
Remove unnecessary required=false
Browse files Browse the repository at this point in the history
  • Loading branch information
MizukiTemma committed Sep 16, 2024
1 parent f04a56a commit 63a78a4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions integreat_cms/cms/forms/contacts/contact_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@ class Meta:
"website_from_location",
]

def __init__(self, **kwargs: Any) -> None:
r"""
Initialize contact form
:param \**kwargs: The supplied keyword arguments
"""
super().__init__(**kwargs)
self.fields["email"].required = False
self.fields["phone_number"].required = False
self.fields["website"].required = False

def clean(self) -> dict[str, Any]:
"""
Validate the fields
Expand Down

0 comments on commit 63a78a4

Please sign in to comment.