sites.shortcuts.get_current_site()
  • References/Python/Django/API/contrib packages/The “sites” framework

shortcuts.get_current_site(request) A function that checks if django.contrib.sites is installed and returns either

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

AdminSite.password_change_template Path to a custom template that will be used by the admin site password change view.

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

ModelAdmin.empty_value_display New in Django 1.9. This

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

class ModelAdmin [source] The ModelAdmin class is the representation of a model

2025-01-10 15:47:30
contenttypes.models.ContentType.app_label
  • References/Python/Django/API/contrib packages/The contenttypes framework

app_label The name of the application the model is part of. This is taken from the app_label attribute of the model

2025-01-10 15:47:30
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
contenttypes.models.ContentTypeManager
  • References/Python/Django/API/contrib packages/The contenttypes framework

class ContentTypeManager ContentType also has a custom manager, ContentTypeManager, which adds the

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

ModelAdmin.show_full_result_count Set show_full_result_count to control whether the full count of objects should

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

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

2025-01-10 15:47:30
auth.models.Group.name
  • References/Python/Django/API/contrib packages/django.contrib.auth

name Required. 80 characters or fewer. Any characters are permitted. Example: 'Awesome Users'.

2025-01-10 15:47:30