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
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
gis.db.models.GeoQuerySet.geojson()
  • References/Python/Django/API/GeoQuerySet API Reference

GeoQuerySet.geojson(**kwargs) Deprecated since version 1.9: Use

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

string_concat(*strings) Lazy variant of string concatenation, needed for translations that are constructed from multiple parts

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

width Returns the width of this field: >>>

2025-01-10 15:47:30
db.models.Aggregate
  • References/Python/Django/API/Models/Query Expressions

class Aggregate(expression, output_field=None, **extra) [source]

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

FieldFile.size The result of the underlying

2025-01-10 15:47:30
db.migrations.operations.AlterModelTable
  • References/Python/Django/API/Migration Operations

class AlterModelTable(name, table) [source] Changes the model’s table name (the

2025-01-10 15:47:30
db.backends.base.schema.BaseDatabaseSchemaEditor.alter_unique_together()
  • References/Python/Django/API/SchemaEditor

BaseDatabaseSchemaEditor.alter_unique_together(model, old_unique_together, new_unique_together) [source]

2025-01-10 15:47:30