Thursday, July 28, 2011

Re: Admin - change ForeignKey display text

You should take a look at the Django documentation once more,
somewhere around this area:
https://docs.djangoproject.com/en/1.3/ref/models/instances/#django.db.models.Model.__unicode__

--
Uros

On Jul 27, 10:59 pm, galgal <weglarek.rob...@gmail.com> wrote:
> How can I change the display text in select while selecting a field which is
> as ForeignKey? I need to display not only the name of FK, but also name of
> it's parent.
>
> Anybody can give a clue?

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment