mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +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
|
||||
def password(self, create: bool, extracted: Sequence[Any], **kwargs):
|
||||
password = Faker(
|
||||
password = extracted if extracted else Faker(
|
||||
"password",
|
||||
length=42,
|
||||
special_chars=True,
|
||||
|
|
Loading…
Reference in New Issue
Block a user