#10743: Support lookup separators in ModelAdmin.list_display
-------------------------------------------+--------------------------------
          Reporter:  mrts                  |         Owner:  nobody             
          
            Status:  new                   |     Milestone:  1.2                
          
         Component:  django.contrib.admin  |       Version:  SVN                
          
        Resolution:                        |      Keywords:  efficient-admin, 
list_display
             Stage:  Accepted              |     Has_patch:  1                  
          
        Needs_docs:  0                     |   Needs_tests:  0                  
          
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by Rilt):

  * keywords:  efficient-admin => efficient-admin, list_display
  * has_patch:  0 => 1

Comment:

 Added a patch, but would definitely like someone to look at it and
 comment. The basic jist of what I did was add an additional check for any
 strings with "__" in them, indicating a field spanning a relationship, and
 then looping through each relationship until the proper attribute was
 grabbed. Then in the admin validation, there is a recursive function which
 accurately checks that the field exists and is not a ManyToMany.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10743#comment:2>
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 [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-updates?hl=en.


Reply via email to