Skip to content

Commit

Permalink
signals: signal definition fix
Browse files Browse the repository at this point in the history
* FIX Fixes definition of after_record_insert and after_record_update
  signals, which wrongly referred to their before- counterparts.

Signed-off-by: Samuele Kaplun <[email protected]>
  • Loading branch information
kaplun committed Oct 19, 2015
1 parent fb78dcd commit 9cd7880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_records/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def listener(sender, *args, **kwargs):
)
"""

after_record_insert = _signals.signal('before-record-insert')
after_record_insert = _signals.signal('after-record-insert')
"""Signal sent after a record is inserted.
.. note::
Expand All @@ -67,5 +67,5 @@ def listener(sender, *args, **kwargs):
before_record_update = _signals.signal('before-record-update')
"""Signal sent before a record is update."""

after_record_update = _signals.signal('before-record-update')
after_record_update = _signals.signal('after-record-update')
"""Signal sent after a record is updated."""

0 comments on commit 9cd7880

Please sign in to comment.