db.models.Expression.set_source_expressions()
  • References/Python/Django/API/Models/Query Expressions

set_source_expressions(expressions) Takes a list of expressions and stores them such that get_source_expressions()

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

ForeignKey.swappable Controls the migration framework’s reaction if this ForeignKey is pointing at a swappable

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

Field.unique_for_month Like unique_for_date, but requires the field to be unique with respect to the month.

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

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

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

Field.editable If False, the field will not be displayed in the admin or any other

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

create(**kwargs) A convenience method for creating an object and saving it all in one step. Thus:

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

process_lhs(compiler, connection, lhs=None) [source] Returns a tuple (lhs_string, lhs_params)

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

Options.verbose_name_plural The plural name for the object:

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

Field.help_text Extra “help” text to be displayed with the form widget. It’s useful for documentation even if your field isn’t

2025-01-10 15:47:30