-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Emit signal in freeradius accounting view #341
Closes #341 Co-authored-by: sankalp <sankalp123427@gmail.com>
- Loading branch information
1 parent
db2fbbe
commit 8124ff4
Showing
7 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
======= | ||
Signals | ||
======= | ||
|
||
``radius_accounting_success`` | ||
----------------------------- | ||
|
||
**Path**: ``openwisp_radius.signals.radius_accounting_success`` | ||
|
||
**Arguments**: | ||
|
||
- ``sender`` : ``AccountingView`` | ||
- ``accounting_data`` (``dict``): accounting information | ||
- ``view``: instance of ``AccountingView`` | ||
|
||
This signal is emitted every time the accounting REST API endpoint | ||
completes successfully, just before the response is returned. | ||
|
||
The ``view`` argument can also be used to access the ``request`` | ||
object i.e. ``view.request``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.dispatch import Signal | ||
|
||
radius_accounting_success = Signal() # providing_args=['accounting_data', 'view'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters