klen / mixer

Mixer -- Is a fixtures replacement. Supported Django, Flask, SqlAlchemy and custom python objects.
Other
938 stars 96 forks source link

Couldn't save user, original exception: 'NoneType' object has no attribute 'get_FL_names' #162

Closed ranahaani closed 2 years ago

ranahaani commented 2 years ago

Hey, I'm trying to user mixer for the very first time, When I'm trying to create a user object, I'm getting the following error.

from mixer.backend.django import mixer
from apps.users_app.models import User

user1 = mixer.blend(User)

raise Exception("Couldn't save user, original exception: %s" % str(e))
Exception: Mixer (<class 'apps.users_app.models.User'>): Couldn't save user, original exception: 'NoneType' object has no attribute 'get_FL_names'