accrete 0.0.140__py3-none-any.whl → 0.0.141__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- accrete/contrib/user/models.py +2 -2
- {accrete-0.0.140.dist-info → accrete-0.0.141.dist-info}/METADATA +1 -1
- {accrete-0.0.140.dist-info → accrete-0.0.141.dist-info}/RECORD +5 -5
- {accrete-0.0.140.dist-info → accrete-0.0.141.dist-info}/WHEEL +0 -0
- {accrete-0.0.140.dist-info → accrete-0.0.141.dist-info}/licenses/LICENSE +0 -0
accrete/contrib/user/models.py
CHANGED
@@ -66,7 +66,7 @@ class UserManager(BaseUserManager):
|
|
66
66
|
extra_fields.setdefault('is_active', False)
|
67
67
|
return self._create_user(password, email, login, username, **extra_fields)
|
68
68
|
|
69
|
-
def create_superuser(self,
|
69
|
+
def create_superuser(self, password, email, username=None, **extra_fields):
|
70
70
|
extra_fields.setdefault('is_staff', True)
|
71
71
|
extra_fields.setdefault('is_superuser', True)
|
72
72
|
extra_fields.setdefault('is_active', True)
|
@@ -76,7 +76,7 @@ class UserManager(BaseUserManager):
|
|
76
76
|
if extra_fields.get('is_superuser') is not True:
|
77
77
|
raise ValueError('Superuser must have is_superuser=True.')
|
78
78
|
|
79
|
-
return self._create_user(
|
79
|
+
return self._create_user(password, email, username, **extra_fields)
|
80
80
|
|
81
81
|
|
82
82
|
class User(AbstractBaseUser, PermissionsMixin):
|
@@ -226,7 +226,7 @@ accrete/contrib/user/apps.py,sha256=oHDrAiHf-G57mZLyxqGJzRY2DbPprGFD-QgyVJG_ruI,
|
|
226
226
|
accrete/contrib/user/auth_backends.py,sha256=doGdxil4fjhgY5oC2s8zueQq-bQsZ1fyiAo46HyBHLk,598
|
227
227
|
accrete/contrib/user/forms.py,sha256=BpwF_t1-7BpBVmwLpIm6hdqUpPqajoR0ZGOJ8cmaO6M,3290
|
228
228
|
accrete/contrib/user/middleware.py,sha256=qblcujwJsthopagyT-hPFq4HsMyGt-VvqZw5TQopBjk,403
|
229
|
-
accrete/contrib/user/models.py,sha256=
|
229
|
+
accrete/contrib/user/models.py,sha256=8vgDZ2Jf-aFOC12W1vKObaK9FJUwcuWwQWqAi2hXQZg,6257
|
230
230
|
accrete/contrib/user/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
|
231
231
|
accrete/contrib/user/urls.py,sha256=_fBa--3NfyYN10Td7PGHpetJYy42SMqTyCCXhgynkEQ,407
|
232
232
|
accrete/contrib/user/views.py,sha256=oPiyyO7RnfI48iKCO7O5_HMk2vioNEUDowKRe-Xwzm0,3435
|
@@ -273,7 +273,7 @@ accrete/utils/forms.py,sha256=JJ3EY1xcVP6L10i5cSVgh57G0uvFUjiVwUCpEqmBCos,3407
|
|
273
273
|
accrete/utils/log.py,sha256=BH0MBDweAjx30wGBO4F3sFhbgkSoEs7T1lLLjlYZNnA,407
|
274
274
|
accrete/utils/models.py,sha256=2xTacvcpmDK_Bp4rAK7JdVLf8HU009LYNJ6eSpMgYZI,1014
|
275
275
|
accrete/utils/views.py,sha256=PsKpUFjxCm6_l_nfVs-cNIY0lNTdkocm2uohR3o9eEo,5025
|
276
|
-
accrete-0.0.
|
277
|
-
accrete-0.0.
|
278
|
-
accrete-0.0.
|
279
|
-
accrete-0.0.
|
276
|
+
accrete-0.0.141.dist-info/METADATA,sha256=QLIHDvSd9FfMNLcAjZXpdmt8V50SY3laTZlfQhed0c0,4953
|
277
|
+
accrete-0.0.141.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
278
|
+
accrete-0.0.141.dist-info/licenses/LICENSE,sha256=vHwb4Qnv8UfYKFiCWyTuRGsi49x19UQwHRCky3b2_NE,1057
|
279
|
+
accrete-0.0.141.dist-info/RECORD,,
|
File without changes
|
File without changes
|