#21902: Document search order for list_display
-------------------------------+------------------------------------
     Reporter:  schrinaw@…     |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Documentation  |                  Version:  1.5
     Severity:  Normal         |               Resolution:
     Keywords:  admin          |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by bmispelon):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 Hi,

 As described in the documentation [1], you can pass four different kinds
 of values for `list_display`.

 However, what that section doesn't say is that the given list is actually
 the order in which Django tries each possibility.

 I agree that it'd be useful to amend the documentation to mention
 explicitly that the order of the list is the one Django uses.


 As for the feature you're proposing, I don't see much value in it, for two
 reasons:
 1) It's already possible to override a field's display by defining a
 method on the `ModelAdmin` you just need to give it a different name
 2) Backwards-compatibility would be tricky


 So I'm marking this ticket as `accepted` for the documentation issue
 (which should be fairly trivial to fix), but I'm -0 on the proposed
 change.

 Thanks.

 [1]
 
https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21902#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/076.f3a6715facd99560f9514991c62e6525%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to