Skip to content

Commit

Permalink
Fix superuser not able to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
floflo0 committed May 1, 2024
1 parent 75ad227 commit c51bc67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions insalan/user/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def create_superuser(self, email, username, password, **extra_fields):
user.is_superuser = True
user.is_staff = True
user.is_active = True
user.user_permissions.add(Permission.objects.get(codename="email_active"))
user.save()

return user
Expand Down

0 comments on commit c51bc67

Please sign in to comment.