Skip to content

Commit

Permalink
[req-changes] Updated README for new signals
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Apr 4, 2024
1 parent 210c2e9 commit acef298
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3434,6 +3434,41 @@ object are changed, but only on ``post_add`` or ``post_remove`` actions,
``post_clear`` is ignored for the same reason explained
in the previous section.

``config_deactivating``
~~~~~~~~~~~~~~~~~~~~~~~~

**Path**: ``openwisp_controller.config.signals.config_deactivating``

**Arguments**:

- ``instance``: instance of the object being deactivated
- ``previous_status``: previous status of the object before deactivation

This signal is emitted when a configuration status of device is set to ``deactivating``.

``config_deactivated``
~~~~~~~~~~~~~~~~~~~~~~~

**Path**: ``openwisp_controller.config.signals.config_deactivated``

**Arguments**:

- ``instance``: instance of the object being deactivated
- ``previous_status``: previous status of the object before deactivation

This signal is emitted when a configuration status of device is set to ``deactivated``.

``device_deactivated``
~~~~~~~~~~~~~~~~~~~~~~~

**Path**: ``openwisp_controller.config.signals.device_deactivated``

**Arguments**:

- ``instance``: instance of the device being deactivated

This signal is emitted when a device is deactivated.

``config_backend_changed``
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit acef298

Please sign in to comment.