if remove_fields:
    for field_name in remove_fields:
        self.fields.pop(field_name)


class QuestionWithoutTopicView(generics.RetrieveAPIView):
    serializer_class = QuestionSerializer(remove_fields=[
        'field_to_remove1field_to_remove2'])
Динамически исключать или включать поле в сериализаторе Django REST framework