Removed a redundant return in the _validate_code_parent_exists method of the AccountForm form.

This commit is contained in:
依瑪貓 2022-12-05 19:23:48 +08:00
parent 4784100084
commit 3d4d20614c

View File

@ -603,7 +603,6 @@ class AccountForm(forms.Form):
code="code_unique") code="code_unique")
self.add_error("code", error) self.add_error("code", error)
raise error raise error
return
def _validate_code_descendant_code_size(self) -> None: def _validate_code_descendant_code_size(self) -> None:
"""Validates whether the codes of the descendants will be too long. """Validates whether the codes of the descendants will be too long.