Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
453f3f8c
authored
Aug 25, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add inline admin to django admin
parent
b5275f98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
circle/dashboard/admin.py
+6
-2
No files found.
circle/dashboard/admin.py
View file @
453f3f8c
...
@@ -21,18 +21,22 @@ from django import contrib
...
@@ -21,18 +21,22 @@ from django import contrib
from
django.contrib.auth.admin
import
UserAdmin
,
GroupAdmin
from
django.contrib.auth.admin
import
UserAdmin
,
GroupAdmin
from
django.contrib.auth.models
import
User
,
Group
from
django.contrib.auth.models
import
User
,
Group
from
dashboard.models
import
Profile
,
GroupProfile
from
dashboard.models
import
Profile
,
GroupProfile
,
ConnectCommand
class
ProfileInline
(
contrib
.
admin
.
TabularInline
):
class
ProfileInline
(
contrib
.
admin
.
TabularInline
):
model
=
Profile
model
=
Profile
class
CommandInline
(
contrib
.
admin
.
TabularInline
):
model
=
ConnectCommand
class
GroupProfileInline
(
contrib
.
admin
.
TabularInline
):
class
GroupProfileInline
(
contrib
.
admin
.
TabularInline
):
model
=
GroupProfile
model
=
GroupProfile
UserAdmin
.
inlines
=
(
ProfileInline
,
)
UserAdmin
.
inlines
=
(
ProfileInline
,
CommandInline
,
)
GroupAdmin
.
inlines
=
(
GroupProfileInline
,
)
GroupAdmin
.
inlines
=
(
GroupProfileInline
,
)
contrib
.
admin
.
site
.
unregister
(
User
)
contrib
.
admin
.
site
.
unregister
(
User
)
...
...
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