Hi,

Thank you for your answer. That's right, I'm using a ForeignKey from a
model to another and I'm allowing users to edit it by entring text.
It's for a school project, I've added a method in my form
(clean_field(self)) that creates and saves an object based on what the
user wrote. I did that to avoid opening a popup to create the
foreignkey and selecting it.

Now when I save my form, everything works fine but when I try to edit
an entry, the ForeignKey ID is displayed rather than the label.

Thank you for your help

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to