Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Sep 20, 2023
1 parent 0b9c214 commit 56dbac6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions commcare_connect/users/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ def _create_user(self, username: str | None, email: str | None, password: str |
user.save(using=self._db)
return user

def create_user(self, username: str | None = None, email: str | None = None, password: str | None = None, **extra_fields):
def create_user(
self, username: str | None = None, email: str | None = None, password: str | None = None, **extra_fields
):
extra_fields.setdefault("is_staff", False)
extra_fields.setdefault("is_superuser", False)
return self._create_user(username, email, password, **extra_fields)

def create_superuser(self, username: str | None = None, email: str | None = None, password: str | None = None, **extra_fields):
def create_superuser(
self, username: str | None = None, email: str | None = None, password: str | None = None, **extra_fields
):
extra_fields.setdefault("is_staff", True)
extra_fields.setdefault("is_superuser", True)

Expand Down

0 comments on commit 56dbac6

Please sign in to comment.