Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusdandrade committed Jun 10, 2024
2 parents 339f526 + 32630cf commit 5fab465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_initiate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
Users.objects.all().delete()
print("Todos os usuários foram deletados.")

def create_admin(username, email, password):
def create_admin(username, first_name, email, password):
if not Users.objects.filter(username=username).exists():
user = Users.objects.create_user(username=username, email=email, password=password, role='A')
user = Users.objects.create_user(username=username, first_name=first_name, email=email, password=password, role='A')
user.save()


Expand Down

0 comments on commit 5fab465

Please sign in to comment.