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

ModelAdmin.get_urls() [source] The get_urls method on a ModelAdmin

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
contenttypes.admin.GenericInlineModelAdmin
  • References/Python/Django/API/contrib packages/The contenttypes framework

class GenericInlineModelAdmin The GenericInlineModelAdmin class inherits all properties from an

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

set_password(raw_password) Sets the user’s password to the given raw string, taking care of the password hashing. Doesn’t save

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

class GenericRelation related_query_name The relation on the related object

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

class AdminSite(name='admin') [source] A Django administrative site is represented by an

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

class models.Permission

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

AdminSite.site_url The URL for the “View site” link at the top of each admin page. By default, site_url is /

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

is_staff Boolean. Designates whether this user can access the admin site.

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

get_username() Returns the username for the user. Since the User model can be swapped out, you should use this method instead

2025-01-10 15:47:30