File: signals.py

package info (click to toggle)
python-django-mptt 0.13.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,256 kB
  • sloc: python: 4,964; javascript: 317; makefile: 119; sh: 15
file content (9 lines) | stat: -rw-r--r-- 300 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from django.db.models.signals import ModelSignal


# Behaves like Djangos normal pre-/post_save signals signals with the
# added arguments ``target`` and ``position`` that matches those of
# ``move_to``.
# If the signal is called from ``save`` it'll not be pass position.

node_moved = ModelSignal()