#5863: list_display does not allow functions of referenced objects
------------------------------------------------------------+---------------
               Reporter:  Beat Bolli <me+django@…>          |         Owner:  
nobody      
                 Status:  closed                            |     Milestone:    
          
              Component:  django.contrib.admin              |       Version:  
SVN         
             Resolution:  wontfix                           |      Keywords:  
list_display
           Triage Stage:  Design decision needed            |     Has patch:  1 
          
    Needs documentation:  1                                 |   Needs tests:  0 
          
Patch needs improvement:  1                                 |  
------------------------------------------------------------+---------------
Changes (by kmtracey):

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


Comment:

 Replying to [comment:27 Herman S]:
 >
 > As the parent/child relationship is reversed from what Django's
 ModelAdmin.inlines expect, there seems to not be a solution for my
 problem.

 There's a trivially-easy solution you can code: methods on your model or
 model admin that return the information you desire, listed in your
 list_display.

 I'm closing this wontfix; having it be open seems to be confusing people
 into thinking the requested function of allowing a specific field from a
 related model to be shown in list_display is not possible. It is possible,
 quite easily, with a feature (callables in list_display) added since this
 ticket was originally opened. That feature is more powerful than simply
 allowing traversal to a related model's field, so the syntax of how to do
 it is not exactly the same as it would be if just that one piece was
 implemented. But given the more powerful thing has been implemented, I
 don't believe the addition of another way of doing the same thing is
 necessary or worth the implementation/maintenance effort.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5863#comment:28>
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@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to