You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining an inline with a choices field and having extra = 1 set (to allow easily creating a new instance) and submitting the form, validation fails for the extra added formset because UnfoldAdminSelectWidget does not render the blank choice, causing it to select the first choice automatically.
This seems to cause Django to go through the regular form validation because one of the fields has a value. A workaround is to define default= on the choices field or to not set extra = 0