I have quite a big and complex Factory that creates or gets many subFactories on each call and I put all the functionality into the Django Admin command.
Now, whenever I'm trying to call it, it executes once and then freezes, leaving a connection to the database opened. There's no error or meaningful warning. It just freezes.
Now, I'm really not sure why this is happening but whenever I'm using subFactories of this Factory it works smoothly.
Description
I have quite a big and complex Factory that creates or gets many subFactories on each call and I put all the functionality into the Django Admin command. Now, whenever I'm trying to call it, it executes once and then freezes, leaving a connection to the database opened. There's no error or meaningful warning. It just freezes.
Now, I'm really not sure why this is happening but whenever I'm using subFactories of this Factory it works smoothly.
Model / Factory code
This is the main factory that causes the freeze.
Notes
Add any notes you feel relevant here :)