db.backends.base.schema.BaseDatabaseSchemaEditor.alter_field()
  • References/Python/Django/API/SchemaEditor

BaseDatabaseSchemaEditor.alter_field(model, old_field, new_field, strict=False) [source] This

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
gis.db.models.functions.NumGeometries
  • References/Python/Django/API/Geographic Database Functions

class NumGeometries(expression, **extra) Availability: MySQL, PostGIS, Oracle, SpatiaLite Accepts

2025-01-10 15:47:30
db.models.query.QuerySet.update_or_create()
  • References/Python/Django/API/Models/QuerySet API reference

update_or_create(defaults=None, **kwargs) A convenience method for updating an object with the given kwargs, creating

2025-01-10 15:47:30
Unicode data
  • References/Python/Django/API/Unicode data

Django natively supports Unicode data everywhere. Providing your database can somehow store the data, you can safely pass around Unicode strings to templates, models and the

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

class IntegerField(**options) [source] An integer. Values from -2147483648 to

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

Field.unique_for_year Like unique_for_date and unique_for_month.

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

InlineModelAdmin.template The template used to render the inline on the page.

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

import_string(dotted_path) [source] Imports a dotted module path and returns the attribute/class

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

get_max_age(response) [source] Returns the max-age from the response Cache-Control header

2025-01-10 15:47:30