commented

This commit is contained in:
David Kennedy 2024-08-12 15:29:15 -04:00
parent bea53019a5
commit 334b6eac38
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -231,6 +231,7 @@ class User(AbstractUser):
return bool(self.title or self.email or self.phone)
def clean(self):
"""Extends clean method to perform additional validation, which can raise errors in django admin."""
super().clean()
if self.portfolio is None and self._get_portfolio_permissions():