File: signals.py

package info (click to toggle)
python-django-simple-history 3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,124 kB
  • sloc: python: 8,454; makefile: 186
file content (17 lines) | stat: -rw-r--r-- 690 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import django.dispatch

# Arguments: "instance",  "history_instance", "history_date",
#            "history_user", "history_change_reason", "using"
pre_create_historical_record = django.dispatch.Signal()

# Arguments: "instance",  "history_instance", "history_date",
#            "history_user", "history_change_reason", "using"
post_create_historical_record = django.dispatch.Signal()

# Arguments: "sender",  "rows", "history_instance", "instance",
#             "field"
pre_create_historical_m2m_records = django.dispatch.Signal()

# Arguments: "sender",  "created_rows", "history_instance",
#            "instance", "field"
post_create_historical_m2m_records = django.dispatch.Signal()