Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
feudal
feudalBackend
Commits
ac367a14
Commit
ac367a14
authored
Jul 03, 2018
by
Lukas Burgey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register django groups in the admin
parent
cbb0dc58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
django_backend/backend/admin.py
django_backend/backend/admin.py
+3
-0
No files found.
django_backend/backend/admin.py
View file @
ac367a14
from
django.contrib
import
admin
from
django.contrib.auth.admin
import
UserAdmin
from
django.contrib.auth.models
import
Group
from
.
import
models
from
.auth.v1.models
import
OIDCConfig
...
...
@@ -25,6 +26,8 @@ admin.site.register(OIDCConfig)
admin
.
site
.
register
(
models
.
RabbitMQInstance
)
admin
.
site
.
register
(
models
.
User
,
ClientAdmin
)
admin
.
site
.
unregister
(
Group
)
admin
.
site
.
register
(
Group
)
admin
.
site
.
register
(
models
.
Site
)
admin
.
site
.
register
(
models
.
Service
)
admin
.
site
.
register
(
models
.
SSHPublicKey
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment