| Issue 48: | TreeNodeChoiceField should allow non-selection | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Due to the line: kwargs['empty_label'] = None a TreeNodeChoiceField (even with required = False) won't display an empty top value in the select control to allow a non-selection... Modifying it to allow user-override is trivial and allows me to use the control for when I want to (optionally) insert things into a tree or leave unordered in the admin... See attached diff for following code in forms.py - if 'empty_label' not in kwargs: kwargs['empty_label'] = None
Mar 12, 2009
#1
pan.piel...@gmail.com
Jul 1, 2009
(No comment was entered for this change.)
Status:
Accepted
|