Skip to content

Commit

Permalink
Adjusted admin registration, is_staff, is_active
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSychev2005 committed Oct 12, 2024
1 parent bb1caeb commit 708ef7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BackEnd/administration/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def create(self, validated_data):
email=email,
name=name,
surname=surname,
is_staff=True,
is_active=True,
)
admin.set_password(password)
admin.save()
Expand Down

0 comments on commit 708ef7e

Please sign in to comment.