Hi all - being new to Django I've started to define my first template. The issue that I am having is when I simply want to get a value from a form object (rather than the whole <input .... </input> string).
I can get around this by passing in extra values in the render_to_response command in the views.py file i.e., blah = get_object_or_404(mymodel, pk=id) blah_date = blah.date and then pass in blah_date to my template. I thought though there may be a way of getting to the values from the form object that I am passing into the template form = BlahForm(request.POST,instance=blah) # BlahForm is defined in models.py so in the template I could get values from the form object ie.., form.date.value (or something similar) is there a way to do this or do I have to pass in values from the views.py file as I having to do at the moment. Hope this makes sense?! Regards -- View this message in context: http://www.nabble.com/form.fieldname.value---tp16808012p16808012.html Sent from the django-users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---