parameters: (instance, sender, created, **kwargs)
docstring: Send a notification when a comment to a layer, map or document has
      been submitted
docstring_summary: Send a notification when a comment to a layer, map or document has
      been submitted
docstring_tokens: Send a notification when a comment to a layer map or document has been submitted
function: 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})
function_tokens: 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 } )