Django termasuk semua acara admin kolom

class BookAdmin(admin.ModelAdmin):
    list_display = ('title', 'author', 'price')
    # - or -
    list_display = BookAdmin._meta.get_all_field_names()
admin.site.register(Book, BookAdmin)
Trained Tuna