'Get the number of votes for this question in the past week.'

def sync_num_votes_past_week(self):

    last_week = (datetime.now().date() - timedelta(days=7))
    n = QuestionVote.objects.filter(question=self, created__gte=last_week).count()
    self.num_votes_past_week = n
    return n
