Document search order for list_display
|Reported by:||Owned by:||kobuz|
|Cc:||kobuz, eromijn@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (7)
comment:3 Changed 3 years ago by
|Owner:||changed from nobody to kobuz|
|Status:||new → assigned|
|Version:||1.5 → master|
comment:5 Changed 3 years ago by
|Triage Stage:||Accepted → Ready for checkin|