#9053: Fix admin sortable when using callable functions in list_display
-------------------------------------------+--------------------------------
          Reporter:  rgl                   |         Owner:  nobody
            Status:  closed                |     Milestone:        
         Component:  django.contrib.admin  |       Version:  1.0   
        Resolution:  invalid               |      Keywords:        
             Stage:  Unreviewed            |     Has_patch:  1     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by kmtracey):

  * status:  new => closed
  * resolution:  => invalid
  * summary:  Fix admin shortable when using callable functions in
              list_display => Fix admin sortable when using
              callable functions in list_display

Comment:

 Callables can be made to be sortable if you specify an `admin_order_field`
 for them, as described under `list_display` here:

 http://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-display

 (scroll down to just above `list_display_links`)

 The problem here is these "fields" are not enclosed in quotes in
 `list_display`.  They should be, just like all the others and like the
 example in the doc.  Put them in quotes and then it will work without any
 change needed in the admin code.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9053#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 django-updates@googlegroups.com
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