Inline Form Validation in Django
Posted
by allanhenderson
on Stack Overflow
See other posts from Stack Overflow
or by allanhenderson
Published on 2009-05-18T13:23:06Z
Indexed on
2010/06/03
15:24 UTC
Read the original article
Hit count: 323
django
|django-forms
Newbie request that seems difficult to implement. I would like to make an entire inline formset within an admin change form compulsory.. so in my current scenario when I hit save on an Invoice form (in Admin) the inline Order form is blank. I'd like to stop people creating invoices with no orders associated.
Anyone know an easy way to do that?
Normal validation like (required=True) on the model field doesn't appear to work in this instance.
Thanks!!
© Stack Overflow or respective owner