auth.models.User
  • References/Python/Django/API/contrib packages/django.contrib.auth

class models.User User objects have the following fields:

2025-01-10 15:47:30
flatpages.models.FlatPage
  • References/Python/Django/API/contrib packages/The flatpages app

class FlatPage Flatpages are represented by a standard Django model, which lives in

2025-01-10 15:47:30
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
messages.storage.base.Message
  • References/Python/Django/API/contrib packages/The messages framework

class storage.base.Message When you loop over the list of messages in a template, what you get are instances of the Message

2025-01-10 15:47:30
contrib packages
  • References/Python/Django/API/contrib packages

Django aims to follow Python’s

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
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
auth.signals.user_logged_out()
  • References/Python/Django/API/contrib packages/django.contrib.auth

user_logged_out() Sent when the logout method is called. sender

2025-01-10 15:47:30
contenttypes.models.ContentTypeManager.get_by_natural_key()
  • References/Python/Django/API/contrib packages/The contenttypes framework

get_by_natural_key(app_label, model) Returns the ContentType instance uniquely identified by the given application

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

ModelAdmin.formfield_for_manytomany(db_field, request, **kwargs) Like the formfield_for_foreignkey method, the

2025-01-10 15:47:30