def get_serializer_class(self):
        if self.request.method == 'POST':
            return serializers.AttributeCreateSerializer
        if ('PUT', 'PATCH') in self.request.method:
            return serializers.AttributeUpdateSerializer
        return self.serializer_class
dataset/ETHPy150Open dropbox/nsot/nsot/api/views.py/AttributeViewSet.get_serializer_class/swapped operands of `in`