Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django include all columns admin show

class BookAdmin(admin.ModelAdmin):
    list_display = ('title', 'author', 'price')
    # - or -
    list_display = BookAdmin._meta.get_all_field_names()
admin.site.register(Book, BookAdmin)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #include #columns #admin #show
ADD COMMENT
Topic
Name
3+4 =