Add signature support for all current Index attributes.

Review Request #12211 — Created March 25, 2022 and submitted — Latest diff uploaded

Information

Django Evolution
release-2.x

Reviewers

Index signatures can now store condition, db_tablespace,
expressions, include, and opclasses.

Many of these are stored in attrs for future management of attributes,
and these map to keyword arguments on Index. expressions maps to
positional arguments, and are stored separately. Existing attributes
(name and fields) remain at the top-level of the signature
dictionary.

Unit tests pass on all supported versions of Python and Django.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add signature support for all current Index attributes.
Index signatures can now store `condition`, `db_tablespace`, `expressions`, `include`, and `opclasses`. Many of these are stored in `attrs` for future management of attributes, and these map to keyword arguments on `Index`. `expressions` maps to positional arguments, and are stored separately. Existing attributes (`name` and `fields`) remain at the top-level of the signature dictionary.
d7e65cc0da0ad4ac0a723bfcf39714922792504b Christian Hammond
django_evolution/signature.py
django_evolution/support.py
django_evolution/tests/decorators.py
django_evolution/tests/test_signature.py
Loading...