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

SortableHiddenMixin Empty form errors on required fields in empty extra forms #221

Open
TheBrko opened this issue May 25, 2022 · 2 comments

Comments

@TheBrko
Copy link

TheBrko commented May 25, 2022

When i drag and drop inlines with nested_admin.SortableHiddenMixin i get errors on empty extra forms after saving form !

image

@lachlancannon
Copy link

We've run into this as well. For now I've worked around the issue with a little custom javascript that runs on form submit. But it'd be lovely to see this fixed instead of hacked around. :)

@fdintino
Copy link
Member

fdintino commented Jun 9, 2022

Does your position field have a default value or is it null=True? If it doesn't have a default value, try setting default=0.

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

3 participants