<s> from django . conf import settings <EOL> from django . dispatch import receiver <EOL> from badger . signals import badge_was_awarded <EOL> from kitsune . kbadge . tasks import send_award_notification <EOL> @ receiver ( badge_was_awarded ) <EOL> def notify_award_recipient ( sender , award , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not settings . STAGE : <EOL> send_award_notification . delay ( award ) </s>
