Hi all, I have a short question, it's probably a stupid one but I can't quite figure out why Django behaves this way.
I am using limoudou's 'expr' tag, btw. In a template html file, why can I do this (very simplified example): <div style="somestyle"> {{ form.somefield }} </div> but not this: {% expr form.somefield as var %} <div style="somestyle"> {{ var }} </div> The 2nd example causes Django to raise an AttributeError, saying "FormWrapper instance has no attribute 'somefield'." Why can I call the somefield method from within variable expansion {{}} but not inside a custom tag? The reason I want to do this is I want to use the same template for listing some object properties as for displaying input fields to modify them. Thanks in advance, mikah -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---