Le 23/06/2011 14:33, Jonas H. a écrit :
On 06/23/2011 02:11 PM, Harro wrote:
- Will the as_* methods on forms be deprecated? They seem to be a nice
shorter version then the new way to do it.
I'd rather provide a shorter version of {% form %} for built-in layouts:
{% form foobar 'table' %}
as shorthand for
{% form foobar 'forms/layouts/table.html' %}
Hi,
Legacy {{ form }} can be replaced by a short {% form %} if :
* the form tag looks for a context variable named "form" by default. This name
is used by some generic views. Isn't it a kind of convention?
* the default layout is the "as_table" equivalent.
--
Benoit
--
You received this message because you are subscribed to the Google Groups "Django
developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.