My favorites
▼
|
Sign in
django-mptt
Utilities for implementing Modified Preorder Tree Traversal
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
27
attachment: mptt.diff
(1.1 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: mptt/__init__.py
===================================================================
--- mptt/__init__.py (revision 105)
+++ mptt/__init__.py (working copy)
@@ -70,5 +70,5 @@
# Set up signal receivers to manage the tree when instances of the
# model are about to be created, have their parent changed or be
# deleted.
- dispatcher.connect(pre_save, signal=model_signals.pre_save, sender=model)
- dispatcher.connect(pre_delete, signal=model_signals.pre_delete, sender=model)
+ model_signals.pre_save.connect(pre_save, sender=model)
+ model_signals.pre_delete.connect(pre_delete, sender=model)
Index: mptt/signals.py
===================================================================
--- mptt/signals.py (revision 105)
+++ mptt/signals.py (working copy)
@@ -136,7 +136,7 @@
# restored on the way out in case of errors.
setattr(instance, opts.parent_attr, parent)
-def pre_delete(instance):
+def pre_delete(instance, **kwargs):
"""
Updates tree node edge indicators which will by affected by the
deletion of the given model instance and any descendants it may
Powered by
Google Project Hosting