Panos Laganakos
unread,Apr 15, 2008, 2:38:03 PM4/15/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I am using 0.96.1, but I wanted to prepopulate a form from a model. So
I grabbed
`model_to_dict` from trunk. It works (I just had to replace `pk` with
`id`),
but, I need to be able to get data from a foreign key field.
The model is a profile, which has a ForeignKey to `User`. Is it
possible to make
`model_to_dict`, grab the `User` fields too?