def calculate_vote(sender, instance, **kwargs):
## don't fire if it's a gdoc result
if instance.gdoc_import != True:
electiondate_arg = str(instance.electiondate)
call_command('calculate_vote', electiondate_arg)
## needs to be written <-- not doing this bc it would mess with manual results w/ multiple winners, winners that req 2/3, etc
# call_command('declare_winner')
## NEEDS TO STAY models.model so PSQL import works
评论列表
文章目录