On Dec 2, 10:03 am, bnabilos <[email protected]> wrote: > Hello, > > I'm using a ForeignKey in my model and a Charfield in my form, when I > save data everything works well but when I try to edit something, I > get the ForeignKey ID in the Charfield. > > There is a way to display the label instead of the ID when editing an > entry ? > > Thank you
So, let me get this straight--you have a ForeignKey from one model to another, and you are editing that field by letting users enter text? If so, why? You should be using some type of choice field. Wayne -- 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.

