Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-menu-generator-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
AlekSIS®
Libraries
django-menu-generator-ng
Commits
361baea4
Commit
361baea4
authored
7 years ago
by
yamijuan
Browse files
Options
Downloads
Patches
Plain Diff
improved list slice on clean_app_config function
parent
64f2e479
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
menu_generator/utils.py
+1
-1
1 addition, 1 deletion
menu_generator/utils.py
with
1 addition
and
1 deletion
menu_generator/utils.py
+
1
−
1
View file @
361baea4
...
...
@@ -27,7 +27,7 @@ def clean_app_config(app_path):
return
app_path
else
:
app_split
=
app_path
.
split
(
'
.
'
)
new_app
=
'
.
'
.
join
(
app_split
[:
len
(
app_split
)
-
2
])
new_app
=
'
.
'
.
join
(
app_split
[:
-
2
])
if
new_app
in
apps_names
:
return
new_app
else
:
...
...
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