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

output_field Defines the type of class returned by the get_lookup() method. It must be a

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

Options.db_table The name of the database table to use for the model:

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

asc() Returns the expression ready to be sorted in ascending order.

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

Field.blank If True, the field is allowed to be blank. Default is False. Note

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

class SlugField(max_length=50, **options) [source] Slug

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

class Concat(*expressions, **extra) [source] Accepts a list of at least two text fields or

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

Field.one_to_many Boolean flag that is True if the field has a one-to-many relation, such as a GenericRelation

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

update_or_create(defaults=None, **kwargs) A convenience method for updating an object with the given kwargs, creating

2025-01-10 15:47:30