admin.ModelAdmin.preserve_filters
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.preserve_filters The admin now preserves filters on the list view after creating, editing or deleting an object.

2025-01-10 15:47:30
admin.InlineModelAdmin.model
  • References/Python/Django/API/contrib packages/The Django admin site

InlineModelAdmin.model The model which the inline is using. This is required.

2025-01-10 15:47:30
admin.ModelAdmin.prepopulated_fields
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.prepopulated_fields Set prepopulated_fields to a dictionary mapping field names to the fields it should

2025-01-10 15:47:30
admin.ModelAdmin.ordering
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.ordering Set ordering to specify how lists of objects should be ordered in the Django admin views. This

2025-01-10 15:47:30
admin.ModelAdmin.filter_horizontal
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.filter_horizontal By default, a

2025-01-10 15:47:30
admin.ModelAdmin.paginator
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.paginator The paginator class to be used for pagination. By default,

2025-01-10 15:47:30
admin.autodiscover()
  • References/Python/Django/API/contrib packages/The Django admin site

autodiscover() [source] This function attempts to import an admin module in

2025-01-10 15:47:30
admin.ModelAdmin.fields
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.fields Use the fields option to make simple layout changes in the forms on the “add” and “change” pages

2025-01-10 15:47:30
admin.models.LogEntry.object_repr
  • References/Python/Django/API/contrib packages/The Django admin site

LogEntry.object_repr The object`s repr() after the modification.

2025-01-10 15:47:30
admin.AdminSite.index_title
  • References/Python/Django/API/contrib packages/The Django admin site

AdminSite.index_title The text to put at the top of the admin index page (a string). By default, this is “Site administration”

2025-01-10 15:47:30