Vote

UserVote

class policyengine.models.UserVote(*args, **kwargs)
user

The user who cast the vote.

proposal

The policy proposal that initiated the vote.

vote_time

Datetime object representing when the vote was cast.

get_time_elapsed()

Returns a datetime object representing the time elapsed since the vote was cast.

BooleanVote

Extends UserVote.
class policyengine.models.BooleanVote(*args, **kwargs)
boolean_value

The value of the vote. Either True (‘Yes’) or False (‘No’).

NumberVote

Extends UserVote.
class policyengine.models.NumberVote(*args, **kwargs)
number_value

The value of the vote. Must be an integer.