On 1/8/07, gkelly <[EMAIL PROTECTED]> wrote:
Please have a look at the code at:

http://dpaste.com/4503/

I am having a problem with a widget's render method not being called
from a template. I'm not sure if this is the intended way to render a
widget when manually placing them in a template, rather than using
something like {{ form.as_p }}.

Pass the whole Form object to the template, not a list of Fields. Then
use lookup syntax to access the field:

   {{ form.field_name }}

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to