mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-10 05:34:44 +00:00
Merge pull request #1 from bioworkflows/patch-1
Honor passed password for UserFactory
This commit is contained in:
commit
c231a267c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue