Hi.
In my Django 1.0.2 app I have a parent and a child table. On my child
ModelForm a selector field for the parent is automatically provided.
The form also displays a "date" field representing a column in the
child model.
In my view I have:
form = MyForm(initial={'date': request.session['date'], 'parent':
request.session['parent']
})
Print commands show that both "request.session['date']" and
"request.session['parent']" have values as expected, the latter being
a parent object.
The date value shows on the rendered form, but the parent selector
does not preselect itself. Anyone know why this might be so? TIA
Mike
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---