jazzband / django-floppyforms

Full control of form rendering in the templates.
http://django-floppyforms.readthedocs.org/
Other
839 stars 145 forks source link

using "only" breaks form layout use of {% formconfig %} #73

Closed melinath closed 10 years ago

melinath commented 11 years ago

{% formconfig %} only works in the context of a {% form %} tag. To know whether it's in such a context, it checks for the presence of a particular context variable (_form_render).

Unfortunately, if only is set on a {% form %} tag, the _form_render variable is not passed in (because it's set as part of the outer context rather than the inner context.)

I believe the solution would be as simple as setting _form_render in get_extra_context instead of in render.