mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 19:44:00 +03:00
Merge pull request #1 from bioworkflows/patch-1
Honor passed password for UserFactory
This commit is contained in:
commit
c231a267c9
|
@ -12,7 +12,7 @@ class UserFactory(DjangoModelFactory):
|
||||||
|
|
||||||
@post_generation
|
@post_generation
|
||||||
def password(self, create: bool, extracted: Sequence[Any], **kwargs):
|
def password(self, create: bool, extracted: Sequence[Any], **kwargs):
|
||||||
password = Faker(
|
password = extracted if extracted else Faker(
|
||||||
"password",
|
"password",
|
||||||
length=42,
|
length=42,
|
||||||
special_chars=True,
|
special_chars=True,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user