My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 48 attachment: mptt.diff (550 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: forms.py
===================================================================
--- forms.py (revision 119)
+++ forms.py (working copy)
@@ -17,7 +17,8 @@
"""A ModelChoiceField for tree nodes."""
def __init__(self, level_indicator=u'---', *args, **kwargs):
self.level_indicator = level_indicator
- kwargs['empty_label'] = None
+ if 'empty_label' not in kwargs:
+ kwargs['empty_label'] = None
super(TreeNodeChoiceField, self).__init__(*args, **kwargs)

def label_from_instance(self, obj):
Powered by Google Project Hosting