def on_reply_save(sender, instance, created, **kwargs):
 answer = instance
 year = answer.created.year
 creator = answer.creator
 if created:
  from kitsune.questions.tasks import maybe_award_badge
  maybe_award_badge.delay(QUESTIONS_BADGES['answer-badge'], year, creator)

def on_reply_save ( sender , instance , created , ** kwargs ) : answer = instance year = answer . created . year creator = answer . creator if created : from kitsune . questions . tasks import maybe_award_badge maybe_award_badge . delay ( QUESTIONS_BADGES [ 'answer-badge' ] , year , creator )
handle the reply save signal .