'Convert the DIRECTIONS enum to values used when storing.'

@classmethod
def serialize_direction(cls, direction):

    if (direction not in cls.DIRECTIONS):
        raise ValueError(('Invalid    vote    direction:    %s' % direction))
    return cls.SERIALIZED_DIRECTIONS[direction]
