db.models.SET_DEFAULT
  • References/Python/Django/API/Models/Model field reference

SET_DEFAULT [source] Set the ForeignKey to its default value; a default for

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

Options.permissions Extra permissions to enter into the permissions table when creating this object. Add, delete and change

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

deconstruct() [source] Returns a 4-tuple with enough information to recreate the field:

2025-01-10 15:47:30
db.models.fields.related.RelatedManager.set()
  • References/Python/Django/API/Models/Related objects reference

set(objs, bulk=True, clear=False) New in Django 1.9.

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

ManyToManyField.related_query_name Same as ForeignKey.related_query_name.

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

Field.validators A list of validators to run for this field. See the validators documentation for more

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

from_db_value(value, expression, connection, context) Converts a value as returned by the database to a Python object. It is

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

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

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

DecimalField.max_digits The maximum number of digits allowed in the number. Note that this number must be greater than or equal

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

Field.unique If True, this field must be unique throughout the table. This is enforced

2025-01-10 15:47:30