mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 08:14:13 +03:00
Fix typo & import in UserFactory
This commit is contained in:
parent
794c9f1ce7
commit
c86d5c928c
|
@ -1,12 +1,11 @@
|
|||
from feder.users import models
|
||||
import factory
|
||||
|
||||
|
||||
class UserFactory(factory.django.DjangoModelFactory):
|
||||
username = factory.Sequence(lambda n: 'user-{0}'.format(n))
|
||||
email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n))
|
||||
password = factory.PosteGnerationMethodCall('set_password', 'password')
|
||||
password = factory.PostGenerationMethodCall('set_password', 'password')
|
||||
|
||||
class Meta:
|
||||
model = models.User
|
||||
model = 'users.User'
|
||||
django_get_or_create = ('username', )
|
||||
|
|
Loading…
Reference in New Issue
Block a user