Skip to content

Commit

Permalink
remove get_by_natural_key implementation on UserProfileManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakadus committed Jan 6, 2025
1 parent 5bb6e9c commit 988355d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evap/evaluation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,9 @@ def is_empty(self):
return not (self.title or self.content)


class UserProfileManager(BaseUserManager):
class UserProfileManager(models.Manager["UserProfile"]):
normalize_email = BaseUserManager.normalize_email

def create_user(self, *, email, password=None, first_name_given=None, last_name=None):
user = self.model(email=self.normalize_email(email), first_name_given=first_name_given, last_name=last_name)
validate_password(password, user=user)
Expand Down

0 comments on commit 988355d

Please sign in to comment.