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