admin.register()
  • References/Python/Django/API/contrib packages/The Django admin site

register(*models, site=django.admin.sites.site) [source] There is also a decorator for registering

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

LogEntry.change_message The detailed description of the modification. In the case of an edit, for example, the message contains

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

ModelAdmin.get_fields(request, obj=None) [source] The get_fields method is given

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

ModelAdmin.delete_model(request, obj) [source] The delete_model method is given

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

ModelAdmin.save_related(request, form, formsets, change) [source] The save_related

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

class TabularInline [source]

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

InlineModelAdmin.formset This defaults to

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

InlineModelAdmin.verbose_name_plural An override to the verbose_name_plural found in the model’s inner Meta

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

AdminSite.login_template Path to a custom template that will be used by the admin site login view.

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

LogEntry.get_change_message() New in Django 1.10.

2025-01-10 15:47:30