paulocheque / django-dynamic-fixture

A complete library to create dynamic model instances for testing purposes.
http://django-dynamic-fixture.readthedocs.io/
Other
391 stars 67 forks source link

G with protected fields #147

Open camilogg opened 2 years ago

camilogg commented 2 years ago

I'm using django-fsm and I have an Order model with state field with protected=True so I can't create objects with G. Is there any workaround for this?

image

paulocheque commented 2 years ago

I am not up to date. What if you split the object creation into multiple calls? For the FK objects?

If that field is nullable, could you try set it None?