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
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.Options.app_label
  • References/Python/Django/API/Models/Model Meta options

Options.app_label If a model is defined outside of an application in INSTALLED_APPS, it must declare which app

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

Options.required_db_features New in Django 1.9. List

2025-01-10 15:47:30
db.models.Aggregate.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 aggregate. Defaults to '%(function)s(

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

ForeignKey.db_constraint Controls whether or not a constraint should be created in the database for this foreign key. The default

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

formfield(form_class=None, choices_form_class=None, **kwargs) [source] Returns the default

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.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.Model.get_absolute_url()
  • References/Python/Django/API/Models/Model instance reference

Model.get_absolute_url() Define a get_absolute_url() method to tell Django how to calculate the canonical URL for

2025-01-10 15:47:30