feat: hooks for profile mandatory fields

This commit is contained in:
Jannat Patel
2021-12-20 14:18:22 +05:30
parent f8b0d9b180
commit ea06fe8cf8
4 changed files with 17 additions and 13 deletions

View File

@@ -12,6 +12,7 @@ class CustomUser(User):
super(CustomUser, self).validate()
self.validate_username_characters()
self.validate_skills()
self.validate_completion()
def validate_username_characters(self):
if len(self.username):