You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import factory
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = 'myapp.User' # Equivalent to ``model = myapp.models.User``
django_get_or_create = ('username',)
I get the following error:
AttributeError: module 'factory' has no attribute 'django
The text was updated successfully, but these errors were encountered:
Description
I cannot import the DjangoModelFactory as described in the documentation. I am using factory_boy 3.0.0 and python 3.8.3:
To Reproduce
From the documentation, https://factoryboy.readthedocs.io/en/3.0.0/orms.html I tried to create a class:
I get the following error:
The text was updated successfully, but these errors were encountered: