class QuestionWithoutTopicView(generics.RetrieveAPIView):
    serializer_class = QuestionSerializer(remove_fields=[
        'field_to_remove1field_to_remove2'])
Dynamically exclude or include a field in Django REST framework serializer