#2583: can't use ForeignKey in list view (class Admin: list_display)
-------------------------------------------+--------------------------------
Reporter: 235 | Owner: nobody
Status: closed | Milestone:
Component: django.contrib.admin | Version: SVN
Resolution: worksforme | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by kmtracey):
* status: reopened => closed
* resolution: => worksforme
Comment:
Replying to [comment:14 attila_forgacs]:
The original problem here was apparently due to having
TEMPLATE_STRING_IF_INVALID set to something other than an empty string,
and it involved incorrect display, not all of the entries that should be
there not being displayed. Thus, you seem to be having a different
problem, not this one.
Plenty of people use !ForeignKeys in list_display; this feature is not
fundamentally broken. There is something particular to your models, your
configuration, or possibly even the data in your database that is causing
the problem you are seeing. Since you have provided no information about
any of that, it's rather difficult to help diagnose. Also, this is not
the right place for it. I suggest posting more information on django-
users and someone may be able to help. At this point a ticket is premature
because we have no idea whether the problem is in your setup or in Django
itself.
--
Ticket URL: <
http://code.djangoproject.com/ticket/2583#comment:15>
Django <
http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to
django-updates@...
To unsubscribe from this group, send email to
django-updates+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en-~----------~----~----~----~------~----~------~--~---