Changes between Initial Version and Version 1 of Ticket #35104


Ignore:
Timestamp:
Jan 11, 2024, 10:01:41 AM (10 months ago)
Author:
Tim Graham
Comment:

The workaround you've identified is the correct solution. We can't be too clever here since list_display can also include model methods, etc.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35104

    • Property Resolutionwontfix
    • Property Status newclosed
  • Ticket #35104 – Description

    initial v1  
    77
    88E.g:
    9 
     9{{{#!python
    1010class Model(models.Model)
    1111    name = ...
     
    1515class MyModelAdmin(admin.ModelAdmin):
    1616    list_display = ['id', 'name']
    17 
    18 when accessing /admin/models/ this would result into a Model.objects.all().only(*MyModelAdmin.list_display)
     17}}}
     18when accessing /admin/models/ this would result into a `Model.objects.all().only(*MyModelAdmin.list_display)`.
Back to Top