Re: Obtaining newforms field values in a template

2007-09-16 Thread [EMAIL PROTECTED]
Collin, Thanks for the response. I don't want to use the built-in rendering, that's the thing. I'm building my form fields with a Javascript library, and using the Django newforms for the server-side validation goodness. As a result, I just want the value that's going to be displayed, bound or

Re: Obtaining newforms field values in a template

2007-09-16 Thread Collin Grady
What exactly is your use case here? This should all be handled automatically when you do {{ form.fieldname }}, depending on if it's bound or not :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Obtaining newforms field values in a template

2007-09-15 Thread [EMAIL PROTECTED]
Hello all, I'm trying to display the initial/bound value of a field in a template by addressing it directly. I can't seem to find a consistent way of doing so, however; apparently I need to call the form if it is an initial, unbound value, and I can call the field itself if it has been bound. Is