Commit 687dc88b authored by okhin's avatar okhin 🚴

Adding filters to Feedback Category

parent c4bbf2af
Pipeline #1163 passed with stage
in 47 seconds
...@@ -61,6 +61,9 @@ class GroupAdmin(admin.ModelAdmin): ...@@ -61,6 +61,9 @@ class GroupAdmin(admin.ModelAdmin):
class CategoryAdmin(admin.ModelAdmin): class CategoryAdmin(admin.ModelAdmin):
list_display = ('name', 'organization',)
list_filter = ('organization',)
def get_queryset(self, request): def get_queryset(self, request):
qs = super(CategoryAdmin, self).get_queryset(request) qs = super(CategoryAdmin, self).get_queryset(request)
if request.user.is_superuser: if request.user.is_superuser:
......
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