'Convert stored vote direction value back to DIRECTIONS enum.'

@classmethod
def deserialize_direction(cls, direction):

    direction = int(direction)
    if (direction not in cls.DESERIALIZED_DIRECTIONS):
        raise ValueError(('Invalid    vote    direction:    %s' % direction))
    return cls.DESERIALIZED_DIRECTIONS[direction]
