-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow reuse of status indicators (#319)
* Allow page indicators for any versioned model * MySQL compatibility * Fix queryset initialization * fix isort * Generalize get_latest_admin_viewable_page_content * fix flake8 * Fix: grouper can be model or instance * fix: identify correct inverse relation * Remove IndicatorMixin * Add tests * no message * More flexible list_display option * Improve back functionality of get views * Fix isort * Add one more test, fix doc inconsistency * fix coverage * Let get_list_display return tuple * Fix isort * Fix test bugs * Remove empty line * Fix: Add MediaDefiningClass meta classes * Refactor for more consistent api * Update tests * Fix 2 missing renames * Remove spourious import cycle * fix: isort * Update djangocms_versioning/helpers.py Co-authored-by: Andrew Aikman <[email protected]> * Update djangocms_versioning/helpers.py Co-authored-by: Andrew Aikman <[email protected]> * Update docs/versioning_integration.rst Co-authored-by: Andrew Aikman <[email protected]> * Consistent labels for "discard changes" * Add more tests * Update release notes * Fix: Clarify docs (page tree as example) * Update docs * Update djangocms_versioning/helpers.py Co-authored-by: Andrew Aikman <[email protected]> * Update tests/test_admin.py Co-authored-by: Andrew Aikman <[email protected]> * Update tests/test_indicators.py Co-authored-by: Andrew Aikman <[email protected]> * fix indentation * Update tests/test_indicators.py Co-authored-by: Andrew Aikman <[email protected]> * Update tests/test_indicators.py Co-authored-by: Andrew Aikman <[email protected]> * Update tests/test_indicators.py Co-authored-by: Andrew Aikman <[email protected]> * Update tests/test_admin.py Co-authored-by: Andrew Aikman <[email protected]> * Move indicator names to constants, add tests for versionables module * fix flake8 * fix isort * simpler imports * Fix: `get_{field}_from_request` now needs to be present in model admin * fix 2 typos --------- Co-authored-by: Andrew Aikman <[email protected]>
- Loading branch information
Showing
21 changed files
with
831 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.