Given an instance of a form that was created with initial data, how do I extract a specific field value? For example,
a = AForm( initial = {'x': 1} ) How do I find out what value the field named 'x' is? a.fields['x'] gives me <django.newforms.fields.IntegerField object at ...> a.fields['x'].initial returns None I am not interested in submitted values that may be bound to the form. The field is a hidden input field which I am using to index pieces of the form that is rendered. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---