def get_serializer_class(self):
        if ('POST', 'PUT', 'PATCH') in self.request.method:
            return serializers.TemplateCreateSerializer

        return super(TemplateViewSet, self).get_serializer_class()
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/views.py/TemplateViewSet.get_serializer_class/swapped operands of `in`