In my admin for an object Chair I have a TabularInline for an arbitrary number of Desk objects. I want every Chair to always have at least one Desk object associated with it. Is there a way to make the admin interface force the user to enter at least one Desk? Like show an error if no Desk is entered?
In my admin for an object Chair I have a TabularInline for an arbitrary
Share
Matthew Flanagan has a great example of how to require one valid form in a formset: http://code.google.com/p/wadofstuff/wiki/WadOfStuffDjangoForms and http://wadofstuff.blogspot.com/2009/08/requiring-at-least-one-inline-formset.html
Hope that helps you out.