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
db.models.Field.db_column
  • References/Python/Django/API/Models/Model field reference

Field.db_column The name of the database column to use for this field. If this isn’t given, Django will use the field’s name

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.functions.datetime.ExtractHour
  • References/Python/Django/API/Models/Database Functions

class ExtractHour(expression, tzinfo=None, **extra) [source] lookup_name

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

ForeignKey.to_field The field on the related object that the relation is to. By default, Django uses the primary key of the

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

get(**kwargs) Returns the object matching the given lookup parameters, which should be in the format described in Field lookups

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.lookups.RegisterLookupMixin
  • References/Python/Django/API/Models/Lookup API reference

class lookups.RegisterLookupMixin A mixin that implements the lookup API on a class.

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

FilePathField.allow_files Optional. Either True or False. Default is True. Specifies

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

class TextField(**options) [source] A large text field. The default form widget for this

2025-01-10 15:47:30