Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
djangoldp-packages
djangoldp
Commits
b10db37d
Commit
b10db37d
authored
5 years ago
by
Jean-Baptiste
Browse files
Options
Downloads
Patches
Plain Diff
update: admin.py retrocompatibility
parent
d0c50c98
No related branches found
No related tags found
No related merge requests found
Pipeline
#987
passed with stage
in 1 minute and 26 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp/admin.py
+6
-0
6 additions, 0 deletions
djangoldp/admin.py
with
6 additions
and
0 deletions
djangoldp/admin.py
+
6
−
0
View file @
b10db37d
...
...
@@ -4,6 +4,12 @@ from django.conf import settings
from
django.contrib
import
admin
from
.models
import
LDPSource
,
Model
for
package
in
settings
.
DJANGOLDP_PACKAGES
:
try
:
import_module
(
'
{}.admin
'
.
format
(
package
))
except
ModuleNotFoundError
:
pass
for
package
in
settings
.
DJANGOLDP_PACKAGES
:
try
:
import_module
(
'
{}.models
'
.
format
(
package
))
...
...
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