old_contents: from django.utils.translation import ugettext as _
  from django.contrib import admin
  from guardian.admin import GuardedModelAdmin
  from records.models import Record
  from .models import Case, PermissionGroup
  
  
  class RecordInline(admin.StackedInline):
      '''
          Stacked Inline View for Record
      '''
      model = Record
  
  
  @admin.register(Case)
  class CaseAdmin(GuardedModelAdmin):
      inlines = [RecordInline]
      list_display = ['name', 'client']
  
  
  @admin.register(PermissionGroup)
  class PermissionGroupAdmin(admin.ModelAdmin):
      '''
          Admin View for PermissionGroup
      '''
      list_display = ['name', 'get_permissions']
      select_related = ['permissions']
  
      def get_permissions(self, obj):
          return ", ".join([_(x.name) for x in obj.permissions.all()])
  
new_contents: from django.utils.translation import ugettext as _
  from django.contrib import admin
  from guardian.admin import GuardedModelAdmin
  from records.models import Record
  from .models import Case, PermissionGroup
  
  
  class RecordInline(admin.StackedInline):
      '''
          Stacked Inline View for Record
      '''
      model = Record
  
  
  @admin.register(Case)
  class CaseAdmin(GuardedModelAdmin):
      inlines = [RecordInline]
      list_display = ['name', 'client']
      list_filter = ['tags', ]
  
  
  @admin.register(PermissionGroup)
  class PermissionGroupAdmin(admin.ModelAdmin):
      '''
          Admin View for PermissionGroup
      '''
      list_display = ['name', 'get_permissions']
      select_related = ['permissions']
  
      def get_permissions(self, obj):
          return ", ".join([_(x.name) for x in obj.permissions.all()])
  
subject: Add filter by tags in CaseAdmin