old_contents: from django.contrib.auth.models import Permission
  
  from rest_framework import viewsets
  
  from .serializers import PermissionSerializer
  
  
  class PermissionViewSet(viewsets.ReadOnlyModelViewSet):
      queryset = Permission.objects.all()
      serializer_class = PermissionSerializer
  
new_contents: from django.contrib.auth.models import Permission
  
  from rest_framework import viewsets
  
  from .serializers import PermissionSerializer
  
  
  class PermissionViewSet(viewsets.ReadOnlyModelViewSet):
      queryset = Permission.objects.all()
      serializer_class = PermissionSerializer
      search_fields = ('name',)
  
subject: Add search functionality to permissions endpoint