def send_vote_update_task(**kwargs): if kwargs.get('created'): q = kwargs.get('instance').question update_question_votes.delay(q)
def send_vote_update_task(**kwargs): if kwargs.get('created'): q = kwargs.get('instance').question update_question_votes.delay(q.id)
def send_vote_update_task(**kwargs): if kwargs.get("created"): q = kwargs.get("instance").question update_question_votes.delay(q)