Commit 605c90b2 authored by Mindiell's avatar Mindiell

Groups are no more directly updated, linked to GroupTypes

parent 0dc62a24
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment