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

prefetch_related_objects(model_instances, *related_lookups) [source]

2025-01-10 15:47:30
db.models.options.Options.get_field()
  • References/Python/Django/API/Models/Model _meta API

Options.get_field(field_name) [source] Returns the field instance given a name of a field

2025-01-10 15:47:30
db.models.lookups.RegisterLookupMixin.get_lookup()
  • References/Python/Django/API/Models/Lookup API reference

get_lookup(lookup_name) Returns the Lookup named lookup_name registered in the class. The default

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.query.QuerySet.using()
  • References/Python/Django/API/Models/QuerySet API reference

using(alias) This method is for controlling which database the QuerySet will be evaluated against if you are using

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

class Value(value, output_field=None) [source] A Value() object represents the

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.CASCADE
  • References/Python/Django/API/Models/Model field reference

CASCADE [source] Cascade deletes. Django emulates the behavior of the SQL constraint ON DELETE

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

ImageField.width_field Name of a model field which will be auto-populated with the width of the image each time the model instance

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

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

2025-01-10 15:47:30