Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
605c90b2
Commit
605c90b2
authored
Jan 16, 2015
by
Mindiell
Browse files
Groups are no more directly updated, linked to GroupTypes
parent
0dc62a24
Changes
1
Show whitespace changes
Inline
Side-by-side
picampaign/organization/admin.py
View file @
605c90b2
...
...
@@ -12,7 +12,12 @@ class OrganizationAdmin(admin.ModelAdmin):
return
qs
.
filter
(
id__in
=
user_orgs
)
class
GroupInline
(
admin
.
TabularInline
):
model
=
Group
class
GroupTypeAdmin
(
admin
.
ModelAdmin
):
inlines
=
[
GroupInline
]
def
get_queryset
(
self
,
request
):
qs
=
super
(
GroupTypeAdmin
,
self
).
get_queryset
(
request
)
...
...
@@ -73,5 +78,5 @@ class CategoryAdmin(admin.ModelAdmin):
admin
.
site
.
register
(
Organization
,
OrganizationAdmin
)
admin
.
site
.
register
(
GroupType
,
GroupTypeAdmin
)
admin
.
site
.
register
(
Group
,
GroupAdmin
)
#
admin.site.register(Group, GroupAdmin)
admin
.
site
.
register
(
FeedbackCategory
,
CategoryAdmin
)
Write
Preview
Supports
Markdown
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