Re: Raise error based on both form and inline_formset

2009-12-11 Thread Preston Holmes
On Dec 10, 9:05 am, cerberos wrote: > I'm building a library system and have models Member, Loan and > LoanItem (relationships as you'd expect), and an inline formset to > enter a new loan (Loan and LoanItems). > > A member can borrow up to 6 books at a time, so my form contains 7 > individual f

Re: Raise error based on both form and inline_formset

2009-12-10 Thread andreas schmid
this is my form+formset and the validation/error display works for both at the same time. maybe you can get yours working by comparing it def myform(request): idea_form = ProjectideaForm activity_formset = inlineformset_factory(Projectidea, Activity, extra=5) if r

Raise error based on both form and inline_formset

2009-12-10 Thread cerberos
I'm building a library system and have models Member, Loan and LoanItem (relationships as you'd expect), and an inline formset to enter a new loan (Loan and LoanItems). A member can borrow up to 6 books at a time, so my form contains 7 individual forms (1 loan and 6 loan items), I need to get the