admin.ModelAdmin.change_list_template

ModelAdmin.change_list_template Path to a custom template, used by changelist_view().

admin.ModelAdmin.change_form_template

ModelAdmin.change_form_template Path to a custom template, used by change_view().

admin.ModelAdmin.changelist_view()

ModelAdmin.changelist_view(request, extra_context=None) [source] Django view for the model instances change list/actions page. See note below.

admin.ModelAdmin.add_view()

ModelAdmin.add_view(request, form_url='', extra_context=None) [source] Django view for the model instance addition page. See note below.

admin.ModelAdmin.add_form_template

ModelAdmin.add_form_template Path to a custom template, used by add_view().

admin.ModelAdmin.actions_selection_counter

ModelAdmin.actions_selection_counter Controls whether a selection counter is displayed next to the action dropdown. By default, the admin changelist will display it (actions_selection_counter = True).

admin.ModelAdmin.actions_on_top

ModelAdmin.actions_on_top

admin.ModelAdmin.actions_on_bottom

ModelAdmin.actions_on_bottom Controls where on the page the actions bar appears. By default, the admin changelist displays actions at the top of the page (actions_on_top = True; actions_on_bottom = False).

admin.ModelAdmin.actions

ModelAdmin.actions A list of actions to make available on the change list page. See Admin actions for details.

admin.ModelAdmin

class ModelAdmin [source] The ModelAdmin class is the representation of a model in the admin interface. Usually, these are stored in a file named admin.py in your application. Let’s take a look at a very simple example of the ModelAdmin: from django.contrib import admin from myproject.myapp.models import Author class AuthorAdmin(admin.ModelAdmin): pass admin.site.register(Author, AuthorAdmin) Do you need a ModelAdmin object at all? In the preceding example, the ModelAdmin class doesn’