OpenSlides/openslides/poll/serializers.py
2020-03-17 07:24:34 +01:00

17 lines
285 B
Python

BASE_POLL_FIELDS = (
"state",
"type",
"title",
"groups",
"votesvalid",
"votesinvalid",
"votescast",
"options",
"voted",
"id",
)
BASE_OPTION_FIELDS = ("id", "yes", "no", "abstain")
BASE_VOTE_FIELDS = ("id", "weight", "value", "user", "option")