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
30
attachment: signals.patch
(776 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: signals.py
===================================================================
--- signals.py (revision 31080)
+++ signals.py (revision 29656)
@@ -39,7 +39,7 @@
pass
return right_sibling
-def pre_save(instance, **args):
+def pre_save(instance):
"""
If this is a new node, sets tree fields up before it is inserted
into the database, making room in the tree structure as neccessary,
@@ -96,7 +96,7 @@
# restored on the way out in case of errors.
setattr(instance, opts.parent_attr, parent)
-def pre_delete(instance, **args):
+def pre_delete(instance):
"""
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