From the Django intro tutorial, in \mysite\polls\admin.py
:
from django.contrib import admin
#...
class PollAdmin(admin.ModelAdmin):
#...
inlines = [ChoiceInline]
list_display = ('question', 'pub_date', 'was_published_today')
list_filter = ['pub_date']
admin.site.register(Poll, PollAdmin)
Why do inlines and list_filter
both use lists, while list_display
uses a tuple? Do inlines and list_filters
need to be mutable for some reason?
I'm just trying to understand the design decision here.