db.models.expressions.When
  • References/Python/Django/API/Models/Conditional Expressions

class When(condition=None, then=None, **lookups) [source] A When() object is

2025-01-10 15:47:30
db.models.ImageField.height_field
  • References/Python/Django/API/Models/Model field reference

ImageField.height_field Name of a model field which will be auto-populated with the height of the image each time the model

2025-01-10 15:47:30
db.models.functions.datetime.ExtractYear
  • References/Python/Django/API/Models/Database Functions

class ExtractYear(expression, tzinfo=None, **extra) [source] lookup_name

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

first_name Optional. 30 characters or fewer.

2025-01-10 15:47:30
utils.decorators.decorator_from_middleware_with_args()
  • References/Python/Django/API/Django Utils

decorator_from_middleware_with_args(middleware_class) [source] Like decorator_from_middleware

2025-01-10 15:47:30
syndication.views.Feed
  • References/Python/Django/API/contrib packages/The syndication feed framework

class views.Feed This example illustrates all possible attributes and methods for a Feed class:

2025-01-10 15:47:30
db.models.ForeignKey.on_delete
  • References/Python/Django/API/Models/Model field reference

ForeignKey.on_delete When an object referenced by a ForeignKey is deleted, Django will emulate the behavior of

2025-01-10 15:47:30
core.validators.EmailValidator
  • References/Python/Django/API/Validators

class EmailValidator(message=None, code=None, whitelist=None) [source]

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

ModelAdmin.get_list_display(request) [source] The get_list_display method is

2025-01-10 15:47:30
core.files.storage.Storage.listdir()
  • References/Python/Django/API/File handling/File storage API

listdir(path) [source] Lists the contents of the specified path, returning a 2-tuple of lists;

2025-01-10 15:47:30