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.

How can I set a sorta minimum number of deadlines, i.e. zero, so that
if a person doesn't have a deadline they could still submit the event?


Thanks in advance for any help,
mw




--~--~---------~--~----~------------~-------~--~----~
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