db.models.Field.choices
  • References/Python/Django/API/Models/Model field reference

Field.choices An iterable (e.g., a list or tuple) consisting itself of iterables of exactly two items (e.g. [(A, B), (A

2025-01-10 15:47:30
gis.db.models.functions.Transform
  • References/Python/Django/API/Geographic Database Functions

class Transform(expression, srid, **extra) Availability: PostGIS, Oracle, SpatiaLite Accepts

2025-01-10 15:47:30
views.generic.dates.DateMixin.allow_future
  • References/Python/Django/API/Date-based mixins

allow_future A boolean specifying whether to include “future” objects on this page, where “future” means objects in which the

2025-01-10 15:47:30
views.generic.dates.BaseDateListView.allow_empty
  • References/Python/Django/API/Date-based mixins

allow_empty A boolean specifying whether to display the page if no objects are available. If this is True and no

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

RemoteUserBackend.clean_username(username) Performs any cleaning on the username (e.g. stripping LDAP DN information)

2025-01-10 15:47:30
Class-based views mixins
  • References/Python/Django/API/Built-in class-based views API/Class-based views mixins

Class-based views API reference. For introductory material, see Using mixins with class-based views. Simple

2025-01-10 15:47:30
Writing database migrations
  • References/Python/Django/Guides: How-tos

This document explains how to structure and write database migrations for different scenarios you might encounter. For introductory material on migrations, see the

2025-01-10 15:47:30
auth.get_user_model()
  • References/Python/Django/Guides

get_user_model() [source] Instead of referring to

2025-01-10 15:47:30
auth.models.PermissionsMixin.is_superuser
  • References/Python/Django/Guides

is_superuser Boolean. Designates that this user has all permissions without explicitly assigning them.

2025-01-10 15:47:30
views.generic.dates.YearMixin.year
  • References/Python/Django/API/Date-based mixins

year Optional The value for the year, as a string. By default, set to None, which means the year

2025-01-10 15:47:30