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

ModelAdmin.save_as Set save_as to enable a “save as new” feature on admin change forms. Normally

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

AdminSite.has_permission(request) [source] Returns True if the user for the

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
contenttypes.models.ContentType.get_object_for_this_type()
  • References/Python/Django/API/contrib packages/The contenttypes framework

ContentType.get_object_for_this_type(**kwargs) Takes a set of valid lookup arguments for the

2025-01-10 15:47:30
sitemaps.Sitemap.lastmod
  • References/Python/Django/API/contrib packages/The sitemap framework

lastmod Optional. Either a method or attribute. If it’s a method, it should

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

class FlatpageFallbackMiddleware Each time any Django application raises a 404 error, this middleware checks the flatpages database

2025-01-10 15:47:30
staticfiles.storage.ManifestStaticFilesStorage.file_hash()
  • References/Python/Django/API/contrib packages/The staticfiles app

storage.ManifestStaticFilesStorage.file_hash(name, content=None) The method that is used when creating the hashed name of a

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

has_module_perms(package_name) Returns True if the user has any permissions in the given package (the Django app

2025-01-10 15:47:30
auth.models.User.get_full_name()
  • References/Python/Django/API/contrib packages/django.contrib.auth

get_full_name() Returns the first_name plus the last_name, with a space in between.

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

ModelAdmin.formfield_for_foreignkey(db_field, request, **kwargs) The formfield_for_foreignkey method on a ModelAdmin

2025-01-10 15:47:30