Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
b71f1d0c
Commit
b71f1d0c
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Plain Diff
Merge branch '597-shell_plus-import-order-is-suboptimal' into 'master'
Resolve "shell_plus import order is suboptimal" Closes
#597
See merge request
!861
parents
c4137173
ed3e366a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!861
Resolve "shell_plus import order is suboptimal"
Pipeline
#48725
passed with warnings
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Pipeline: AlekSIS
#48735
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+8
-0
8 additions, 0 deletions
CHANGELOG.rst
aleksis/core/settings.py
+8
-0
8 additions, 0 deletions
aleksis/core/settings.py
with
16 additions
and
0 deletions
CHANGELOG.rst
+
8
−
0
View file @
b71f1d0c
...
...
@@ -9,6 +9,14 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Changed
~~~~~~~
* 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
-------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/settings.py
+
8
−
0
View file @
b71f1d0c
...
...
@@ -964,5 +964,13 @@ if SENTRY_ENABLED:
**
SENTRY_SETTINGS
,
)
SHELL_PLUS_MODEL_IMPORTS_RESOLVER
=
"
django_extensions.collision_resolvers.AppLabelPrefixCR
"
SHELL_PLUS_APP_PREFIXES
=
{
"
auth
"
:
"
auth
"
,
}
SHELL_PLUS_DONT_LOAD
=
[]
merge_app_settings
(
"
SHELL_PLUS_APP_PREFIXES
"
,
SHELL_PLUS_APP_PREFIXES
)
merge_app_settings
(
"
SHELL_PLUS_DONT_LOAD
"
,
SHELL_PLUS_DONT_LOAD
)
# Add django-cleanup after all apps to ensure that it gets all signals as last app
INSTALLED_APPS
.
append
(
"
django_cleanup.apps.CleanupConfig
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment