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: init.patch
(982 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: __init__.py
===================================================================
--- __init__.py (revision 31080)
+++ __init__.py (revision 29656)
@@ -1,7 +1,6 @@
from django.db.models import signals as model_signals
from django.db.models import FieldDoesNotExist, PositiveIntegerField
from django.dispatch import dispatcher
-import django.dispatch
from django.utils.translation import ugettext as _
from mptt import models
@@ -71,7 +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.
- # Prabhu's fixes for making mptt compatible with django 1.0
- my_signal = django.dispatch.Signal()
- my_signal.connect(pre_save, sender=model)
- my_signal.connect(pre_delete, sender=model)
+ dispatcher.connect(pre_save, signal=model_signals.pre_save, sender=model)
+ dispatcher.connect(pre_delete, signal=model_signals.pre_delete, sender=model)
Powered by
Google Project Hosting