Document formset attribute allow_permitted

21 views
Skip to first unread message

Julien Castets

unread,
Feb 3, 2013, 7:35:24 AM2/3/13
to django...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages