On Feb 18, 12:00 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Looks like you are rendering out the form class itself rather than an
> instance of the form.

Monster,

Thanks, but Honza had the correct reply.  I need to access the
individual fields in the template, and BoundField is the way to
do this.  I had already started down this path, but it just seemed
a bit convoluted and I wanted to make sure I wasn't overlooking
something obvious.  Your example works fine, BTW.  It's what
makes newforms so handy, even if the dynamic stuff is somewhat
under-documented.

I replied to Honza earlier (thanks!), but my post evaporated
somewhere in Google Groups, and I didn't want to dupe it to
the list.  For reference, here's one slightly hackish way of
dynamically assigning/rendering fields:

  http://dpaste.com/hold/5773/

Suggestions for improving this hack are welcome, but
please keep them in the context of this use case.  Thanks!

--
Jeff Bauer
Rubicon, Inc.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to