Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G with protected fields #147

Open
camilogg opened this issue Mar 10, 2022 · 1 comment
Open

G with protected fields #147

camilogg opened this issue Mar 10, 2022 · 1 comment

Comments

@camilogg
Copy link

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
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants