From 56dbac61746f804d715426852e805d3e6c6cff4c Mon Sep 17 00:00:00 2001 From: Cal Ellowitz Date: Tue, 19 Sep 2023 20:00:15 -0400 Subject: [PATCH] lint --- commcare_connect/users/managers.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/commcare_connect/users/managers.py b/commcare_connect/users/managers.py index bfbffd29..e41e621f 100644 --- a/commcare_connect/users/managers.py +++ b/commcare_connect/users/managers.py @@ -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)