Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Django Factory gets the wrong manager for model on 2.5.0 #192
Using factory_boy 2.5.0 break my build. I have a model using a custom manager for object creation but factory_boy is somehow ignoring it and using Django's default manager. When creating an object using my factory I expected I could pass extra arguments that my custom manager accepts. The documentation statest that
but that doesn't seem to be true in 2.5.0.
I tried setting my model meta using import model syntax
and 'app.Model' syntax
None of them work. factory_boy 2.4.1 works fine, but I can't figure out what changed between those versions that broke it.