django_evolution.support
Constants indicating available Django features.
Module Attributes
Index names changed in Django 1.5, with the introduction of index_together. |
|
Whether new-style Index classes are available. |
|
Whether Q() objects can be directly compared. |
|
Whether F() objects can be directly compared. |
|
Whether new-style Constraint classes are available. |
|
Whether database table comments are available. |
|
Whether built-in support for Django Migrations is present. |
|
Whether CheckConstraint uses |
Functions
|
Return whether Index supports a specific attribute. |
- django_evolution.support.supports_index_together = False
Index names changed in Django 1.5, with the introduction of index_together.
This field was deprecated in Django 4.2 and removed in 5.1.
- django_evolution.support.supports_indexes = True
Whether new-style Index classes are available.
Django 1.11 introduced formal support for defining explicit indexes not bound to a field definition or as part of
index_together/unique_together.- Type:
- django_evolution.support.supports_q_comparison = True
Whether Q() objects can be directly compared.
Django 2.0 introduced this support.
- Type:
- django_evolution.support.supports_f_comparison = True
Whether F() objects can be directly compared.
Django 2.0 introduced this support.
- Type:
- django_evolution.support.supports_constraints = True
Whether new-style Constraint classes are available.
Django 2.2 introduced formal support for defining explicit constraints not bound to a field definition.
- django_evolution.support.supports_db_table_comments = True
Whether database table comments are available.
Django 4.2 introduced formal support for setting comments attached to tables.
Support may vary by database backend.
Added in version 2.3.
- Type:
- django_evolution.support.supports_migrations = True
Whether built-in support for Django Migrations is present.
This is available in Django 1.7+.
- django_evolution.support.supports_index_feature(attr_name)
Return whether Index supports a specific attribute.
- django_evolution.support.check_constraint_uses_condition = True
Whether CheckConstraint uses
condition.Django 5.1 introduced
CheckConstraint.conditionand deprecatedCheckConstraint.check.Added in version 3.0.