Makes sense. Thanks. On Apr 15, 7:03 pm, Tom Evans <[email protected]> wrote: > On Thu, Apr 15, 2010 at 2:00 PM, chefsmart <[email protected]> wrote: > > Thanks for that tip. > > > I can guess what empty_permitted is, but could you explain how > > empty_permitted is related to can_delete? I couldn't find it in the > > docs, and such relationship is not apparent from the code. > > > Regards. > > empty_permitted is an attribute of BaseForm that is set when one does > not mind if the form is submitted without any data, which is the kind > of form that Formset creates for additional (ie new) form instances. > > Like many things in django, it isn't documented, so could be > considered to be part of the internal API and changed (although I > doubt it would). I don't see another way of doing the same thing > though. I suppose you could look at the Form and see if it has any > initial data bound to it, but for me this way seems cleaner. > > Cheers > > Tom
-- 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.

