Le 03/06/2011 16:58, Gregor Müllegger a écrit :
{% formerrors<form instance|field instance|any ErrorList/ErrorDict> %}
Will it use duck typing? rather than testing Form or Field or ErrorList or ErrorDict subclasses. Drawback: more work needed since some refactoring of Form, BoundField, ErrorList and ErrorDict may be required. Advantage: duck-typing (I mean kind of interfaces) would be more flexible: we will be able to pass custom objects to {% formerrors %}.
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.