#21902: Document search order for list_display
-------------------------------+--------------------
     Reporter:  schrinaw@…     |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Documentation  |    Version:  1.5
     Severity:  Normal         |   Keywords:  admin
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Suppose I have a ModelAdmin with `list_display =
 ["some","model","fields"]` but then I also want to override how one of
 those fields is displayed, so I create a method on the ModelAdmin Class
 {{{
 def some(self, obj):
     return "blah"
 }}}

 It seems the model field takes precedence over the method on the
 ModelAdmin, and I don't see "blah" returned in the changelist.  This is
 not clear from the documentation.  (I figured I would be able to override
 it).

 On a related note, I think it makes sense to be able to override it in the
 ModelAdmin.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21902>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.338f68873becabba54deac61c3bade03%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to