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 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

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.
c7a02c0b3f81547fa1016ad92bba6c0965aa56fe Christian Hammond
django_evolution/signature.py
django_evolution/support.py
django_evolution/tests/decorators.py
django_evolution/tests/test_signature.py
Loading...