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

ModelAdmin.get_prepopulated_fields(request, obj=None) The get_prepopulated_fields method is given the HttpRequest

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

ModelAdmin.save_on_top Set save_on_top to add save buttons across the top of your admin change forms.

2025-01-10 15:47:30
auth.backends.ModelBackend.has_module_perms()
  • References/Python/Django/API/contrib packages/django.contrib.auth

has_module_perms(self, user_obj, app_label) Returns whether the user_obj has any permissions on the app app_label

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

ModelAdmin.list_filter Set list_filter to activate filters in the right sidebar of the change list page of the

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

ModelAdmin.object_history_template Path to a custom template, used by

2025-01-10 15:47:30
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.AdminSite.login_form
  • References/Python/Django/API/contrib packages/The Django admin site

AdminSite.login_form Subclass of

2025-01-10 15:47:30
sites.requests.RequestSite.
  • References/Python/Django/API/contrib packages/The “sites” framework

__init__(request) Sets the name and domain attributes to the value of

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

class StackedInline [source] The admin interface has the ability to edit models on the same

2025-01-10 15:47:30
auth.validators.ASCIIUsernameValidator
  • References/Python/Django/API/contrib packages/django.contrib.auth

class validators.ASCIIUsernameValidator New in Django 1.10.

2025-01-10 15:47:30