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

ForeignKey.limit_choices_to Sets a limit to the available choices for this field when this field is rendered using a ModelForm

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

pre_save(model_instance, add) [source] Method called prior to get_db_prep_save()

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

Field.unique_for_date Set this to the name of a DateField or DateTimeField to require that this field

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

rel_db_type(connection) [source] New in Django

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

function A class attribute describing the function that will be generated. Specifically, the function will be interpolated

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

GenericIPAddressField.protocol Limits valid inputs to the specified protocol. Accepted values are 'both' (default)

2025-01-10 15:47:30
db.models.Transform.lookup_name
  • References/Python/Django/API/Models/Lookup API reference

lookup_name The name of the lookup, used for identifying it on parsing query expressions. It cannot contain the string "__"

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

class Coalesce(*expressions, **extra) [source] Accepts a list of at least two field names

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

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

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

class Sum(expression, output_field=None, **extra) [source] Computes the sum of all values

2025-01-10 15:47:30