AdminLesson 25Free preview
Set List Display
This lesson is part of Django · All levels
Summary
With ModelAdmin, you can specify any column that appears in the admin data list. The list is set by the list_display attribute in the admin class. The display becomes more informative as needed.
Key points
- Make a class of derivatives
- Set the list_display attribute to select the column
- List containing field names or methods
- Make the admin table more informative
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.