old_contents: from rest_auth.permissions import BasePermission
  
  
  class MFLModelPermissions(BasePermission):
      """
      Adds view permission to read-only endpoints
      """
      perms_map = {
          'GET': ['%(app_label)s.view_%(model_name)s'],
          'OPTIONS': ['%(app_label)s.view_%(model_name)s'],
          'HEAD': ['%(app_label)s.view_%(model_name)s'],
          'POST': ['%(app_label)s.add_%(model_name)s'],
          'PUT': ['%(app_label)s.change_%(model_name)s'],
          'PATCH': ['%(app_label)s.change_%(model_name)s'],
          'DELETE': ['%(app_label)s.delete_%(model_name)s'],
      }
  
new_contents: from rest_framework.permissions import BasePermission
  
  
  class MFLModelPermissions(BasePermission):
      """
      Adds view permission to read-only endpoints
      """
      perms_map = {
          'GET': ['%(app_label)s.view_%(model_name)s'],
          'OPTIONS': ['%(app_label)s.view_%(model_name)s'],
          'HEAD': ['%(app_label)s.view_%(model_name)s'],
          'POST': ['%(app_label)s.add_%(model_name)s'],
          'PUT': ['%(app_label)s.change_%(model_name)s'],
          'PATCH': ['%(app_label)s.change_%(model_name)s'],
          'DELETE': ['%(app_label)s.delete_%(model_name)s'],
      }
  
subject: Clean up