db.models.query.QuerySet.create()
  • References/Python/Django/API/Models/QuerySet API reference

create(**kwargs) A convenience method for creating an object and saving it all in one step. Thus:

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

Field.unique_for_month Like unique_for_date, but requires the field to be unique with respect to the month.

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

DateField.auto_now_add Automatically set the field to now when the object is first created. Useful for creation of timestamps

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

template A class attribute, as a format string, that describes the SQL that is generated for this function. Defaults to

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

set_source_expressions(expressions) Takes a list of expressions and stores them such that get_source_expressions()

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

Options.select_on_save Determines if Django will use the pre-1.6

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

class FieldFile [source] When you access a FileField on a model, you are given

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

relabeled_clone(change_map) Returns a clone (copy) of self, with any column aliases relabeled. Column aliases are

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

class Avg(expression, output_field=FloatField(), **extra) [source] Returns the mean value

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

GenericIPAddressField.unpack_ipv4 Unpacks IPv4 mapped addresses like ::ffff:192.0.2.1. If this option is enabled

2025-01-10 15:47:30