diff --git a/equipment_tracker/accounts/models.py b/equipment_tracker/accounts/models.py index 7aa0a26..d2017fe 100644 --- a/equipment_tracker/accounts/models.py +++ b/equipment_tracker/accounts/models.py @@ -75,7 +75,7 @@ def create_superuser(sender, **kwargs): if not User.objects.filter(username=username).exists(): # Create the superuser with is_active set to False user = User.objects.create_user( - username=username, email=email, password=password, first_name=first_name, last_name=last_name) + username=username, email=email, password=password, first_name=first_name, last_name=last_name, is_technician=True) # Activate the user user.is_active = True