File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class EnGbFaker(OriginalFaker):
3232
3333class DjangoUserProvider (BaseProvider ):
3434 """Django user provider."""
35+ _fake = FakerFaker ()
3536
3637 @classmethod
3738 def first_name_django (cls , max_length = 30 ):
@@ -55,8 +56,7 @@ def first_name_django(cls, max_length=30):
5556 :return: str.
5657 """
5758
58- fake = FakerFaker ()
59- return fake .first_name ()[:max_length ]
59+ return cls ._fake .first_name ()[:max_length ]
6060
6161 @classmethod
6262 def last_name_django (cls , max_length = 30 ):
@@ -80,8 +80,7 @@ def last_name_django(cls, max_length=30):
8080 :return: str.
8181 """
8282
83- fake = FakerFaker ()
84- return fake .last_name ()[:max_length ]
83+ return cls ._fake .last_name ()[:max_length ]
8584
8685
8786Faker .add_provider (DjangoUserProvider )
Original file line number Diff line number Diff line change 112112 },
113113 },
114114}
115+
116+ PASSWORD_HASHERS = [
117+ 'django.contrib.auth.hashers.MD5PasswordHasher' ,
118+ ]
You can’t perform that action at this time.
0 commit comments