(sender, instance, created, **kwargs)
return
Send message to users when they receive an award.
Send message to users when they receive an award.
Send message to users when they receive an award .
def send_award_message(sender, instance, created, **kwargs):
    """
    Send message to users when they receive an award.
    """
    if created:
        template = "messages/awards_created.md"
        context = dict(award=instance)

        # Temporarily stop messages to high rep users.
        # if instance.user.profile.score < 1000:
        # Send local message
        tasks.create_messages(template=template, extra_context=context, user_ids=[instance.user.pk])

    return
def send_award_message ( sender , instance , created , * * kwargs ) : if created : template = "messages/awards_created.md" context = dict ( award = instance ) # Temporarily stop messages to high rep users. # if instance.user.profile.score < 1000: # Send local message tasks . create_messages ( template = template , extra_context = context , user_ids = [ instance . user . pk ] ) return