(instance, sender, created, **kwargs)
Send a notification when a comment to a layer, map or document has
    been submitted
Send a notification when a comment to a layer, map or document has
    been submitted
Send a notification when a comment to a layer map or document has been submitted
def comment_post_save(instance, sender, created, **kwargs):
    """ Send a notification when a comment to a layer, map or document has
    been submitted
    """
    notice_type_label = f'{instance.content_type.model.lower()}_comment'
    recipients = get_comment_notification_recipients(notice_type_label,
                                                     instance.author,
                                                     resource=instance.content_object)
    send_notification(recipients,
                      notice_type_label,
                      {'resource': instance.content_object, 'author': instance.author})
def comment_post_save ( instance , sender , created , * * kwargs ) : notice_type_label = f'{instance.content_type.model.lower()}_comment' recipients = get_comment_notification_recipients ( notice_type_label , instance . author , resource = instance . content_object ) send_notification ( recipients , notice_type_label , { 'resource' : instance . content_object , 'author' : instance . author } )