On Thu, 2009-01-15 at 11:25 -0800, mw wrote:
> Well I can set blank=True for the fields of the Deadline, but that
> doesn't feel quite correct still as now someone could potentially half
> fill out a deadline and have it validate.

Really? Did you try that. Blank means blank, not half-completed. The
form validation code should understand that there is a difference.

> On Jan 15, 1:15 pm, mw <[email protected]> wrote:
> > Hello,
> >
> > First I have two classes setup, Event and Deadline.  Deadline has a
> > foreign key pointing to an Event so that events can have multiple
> > deadlines attached to them.  Event's form is generated through
> > modelform, while I used
> >
> > modelformset_factory(Deadline, max_num=0, extra=1,exclude=('event'))
> >
> > for the deadlines.  I would like there to be one form so a user could
> > just click submit once, with zero or more deadlines and have it be
> > OK.  Unfortunately, submitting zero deadlines with the Event's fields
> > filled out results in the deadlines being marked as not valid.

What did the error say? That there was some problem with the data you
entered, or that at least one entry was required?

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to