Re: [Django] #2583: can't use ForeignKey in list view (class Admin: list_display)

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [Django] #2583: can't use ForeignKey in list view (class Admin: list_display)

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#2583: can't use ForeignKey in list view (class Admin: list_display)
-------------------------------------------+--------------------------------
          Reporter:  235                   |         Owner:  nobody
            Status:  reopened              |     Milestone:        
         Component:  django.contrib.admin  |       Version:  SVN  
        Resolution:                        |      Keywords:        
             Stage:  Unreviewed            |     Has_patch:  0    
        Needs_docs:  0                     |   Needs_tests:  0    
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by attila_forgacs):

  * status:  closed => reopened
  * resolution:  worksforme =>

Comment:

 Reproducible in Django 1.1.1.
 Just to be sure :
 TEMPLATE_STRING_IF_INVALID = ''
 Model works perfect.
 If I refer a FK in list_display
 the whole row is gone !
 Nothing is displayed. Screen sais i should see 15 records,
 there ain't any not even in the HTML.
 So i had to reopen ticket.

--
Ticket URL: <http://code.djangoproject.com/ticket/2583#comment:14>
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
-~----------~----~----~----~------~----~------~--~---


Parent Message unknown Re: [Django] #2583: can't use ForeignKey in list view (class Admin: list_display)

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#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
-~----------~----~----~----~------~----~------~--~---