Performance: List display configuration
MEDIUM IMPACT
This affects how quickly the admin page loads and renders lists of database records.
class MyModelAdmin(admin.ModelAdmin): list_display = ['id', 'name']
class MyModelAdmin(admin.ModelAdmin): list_display = ['id', 'name', 'related_model', 'computed_property', 'long_text_field']
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Minimal fields in list_display | Few DOM nodes | 1 reflow | Low paint cost | [OK] Good |
| Many fields including related/computed | Many DOM nodes | Multiple reflows | High paint cost | [X] Bad |