Nevermind, I deleted and syncdb'd the models and what i expected
showed up
On Jul 23, 3:28 pm, John <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> In a model I have the line:
>
> base_lot = models.ForeignKey('self', blank=True, null=True,
> related_name='base')
>
> In the admin, when I set list_filter to 'base_lot', it displays the
> primary key of the record it is related to instead of what the __str__
> model function returns. Is this normal for a self referential
> foreignkey? I tried using a foreign key that pointed to another
> model, and the list_filter displayed what that models __str__ function
> returns, so i'm wondering whether it's just a self referential thing.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---