geonode.social.signals
Django signals connections and associated receiver functions for geonode’s third-party ‘social’ apps which include announcements, notifications, relationships, actstream user_messages and potentially others
Attributes
Functions
|
Creates new activities after a Map, Dataset, or Document is created/updated/deleted. |
|
|
|
|
|
|
|
Send a notification when rating a layer, map or document |
Module Contents
- geonode.social.signals.activity_post_modify_object(sender, instance, created=None, **kwargs)[source]
Creates new activities after a Map, Dataset, or Document is created/updated/deleted.
action_settings: actor: the user who performed the activity action_object: the object that received the action created_verb: a translatable verb that is used when an object is created deleted_verb: a translatable verb that is used when an object is deleted object_name: the title of the object that is used to keep information about the object after it is deleted target: the target of an action updated_verb: a translatable verb that is used when an object is updated
raw_action: a constant that describes the type of action performed (values should be: created, uploaded, deleted)