code: def allowed_operations(self):
          
          if self.slug is not None:
              return self.meta.detail_allowed_operations
  
          return self.meta.list_allowed_operations
docs: Retrieves the allowed operations for this request.