Sunday, February 3, 2013

Document formset attribute allow_permitted

Hey,

By default if a form of a formet is totally empty, the formset
is_valid() method returns True.

On stackoverflow
(http://stackoverflow.com/questions/2406537/django-formsets-make-first-required),
someone explains that you can just change the attribute
empty_permitted of a form to change that behaviour — which works
great.

However this attribute doesn't seem to be documented in the Django
documentation.
Is it because this attribute is private (in which case it should
probably begin with an underscore) or because of a lack in the
documentation ?

--
Julien Castets
http://www.brmzkw.info

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment