Skip to content

Commit

Permalink
error message
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 11, 2023
1 parent 1a39619 commit 8f1f2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codeforlife/user/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def is_authenticated(self):

def save(self, *args, **kwargs):
if self.id is None and not kwargs.pop("_from_manager", False):
raise IntegrityError("Must call create_user instead.")
raise IntegrityError("Must call create_user from manager instead.")

if (
self.student
Expand Down

0 comments on commit 8f1f2b3

Please sign in to comment.