Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
The default for the list view is to just show you the main piece of information about your objects. In our case, we see the course titles, for example, but not much else about the courses. In this video, we’ll learn how to add other fields from our models to the list view, to give us more information at a glance.
list_display = ('title', 'created_at', 'is_live')
Resources:
Django Admin documentation on ModelAdmin.list_filter
Django Model documentation
Python documentation on the math module
You need to sign up for Treehouse in order to download course files.
Sign up