Skip to content
Snippets Groups Projects
Verified Commit ed3e366a authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Resolve collisions in shell_plus by prefixing with app_label

parent c64387ca
Branches 597-shell_plus-import-order-is-suboptimal
No related tags found
1 merge request!861Resolve "shell_plus import order is suboptimal"
Pipeline #48717 passed with warnings
...@@ -9,15 +9,13 @@ and this project adheres to `Semantic Versioning`_. ...@@ -9,15 +9,13 @@ and this project adheres to `Semantic Versioning`_.
Unreleased Unreleased
---------- ----------
Added
~~~~~
* Apps can extend SHELL_PLUS_APP_PREFIXES and SHELL_PLUS_DONT_LOAD
Changed Changed
~~~~~~~ ~~~~~~~
* core.Group model now takes precedence over auth.Group in shell_plus * Improvements for shell_plus module loading
* core.Group model now takes precedence over auth.Group
* Name collisions are resolved by prefixing with the app label
* Apps can extend SHELL_PLUS_APP_PREFIXES and SHELL_PLUS_DONT_LOAD
`2.5`_ – 2022-01-02 `2.5`_ – 2022-01-02
------------------- -------------------
......
...@@ -964,6 +964,7 @@ if SENTRY_ENABLED: ...@@ -964,6 +964,7 @@ if SENTRY_ENABLED:
**SENTRY_SETTINGS, **SENTRY_SETTINGS,
) )
SHELL_PLUS_MODEL_IMPORTS_RESOLVER = "django_extensions.collision_resolvers.AppLabelPrefixCR"
SHELL_PLUS_APP_PREFIXES = { SHELL_PLUS_APP_PREFIXES = {
"auth": "auth", "auth": "auth",
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment