utils.decorators.method_decorator()
  • References/Python/Django/API/Django Utils

method_decorator(decorator, name='') [source] Converts a function decorator into a method

2025-01-10 15:47:30
db.models.Lookup.lookup_name
  • References/Python/Django/API/Models/Lookup API reference

lookup_name The name of this lookup, used to identify it on parsing query expressions. It cannot contain the string "__"

2025-01-10 15:47:30
views.generic.dates.WeekMixin.get_prev_week()
  • References/Python/Django/API/Date-based mixins

get_prev_week(date) Returns a date object containing the first day of the week before the date provided. This function can also

2025-01-10 15:47:30
core.files.uploadedfile.UploadedFile.size
  • References/Python/Django/API/File handling/Uploaded Files and Upload Handlers

UploadedFile.size The size, in bytes, of the uploaded file.

2025-01-10 15:47:30
db.models.Options.app_label
  • References/Python/Django/API/Models/Model Meta options

Options.app_label If a model is defined outside of an application in INSTALLED_APPS, it must declare which app

2025-01-10 15:47:30
gis.gdal.Envelope.ll
  • References/Python/Django/API/GDAL API

ll The lower-left coordinate, as a tuple.

2025-01-10 15:47:30
views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field
  • References/Python/Django/API/Single object mixins

template_name_field The field on the current object instance that can be used to determine the name of a candidate template

2025-01-10 15:47:30
gis.gdal.OGRGeomType.django
  • References/Python/Django/API/GDAL API

django Returns the Django field type (a subclass of GeometryField) to use for storing this OGR type, or None if

2025-01-10 15:47:30
forms.ImageField
  • References/Python/Django/API/Forms/Form fields

class ImageField(**kwargs) [source] Default widget:

2025-01-10 15:47:30
postgres.fields.django.postgres.forms.BaseRangeField.base_field
  • References/Python/Django/API/PostgreSQL specific model fields

base_field The form field to use.

2025-01-10 15:47:30