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 60: Cannot use empty space as level indicator in TreeNodeChoiceField
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by bendavi...@gmail.com, Sep 11, 2009

    parent = TreeNodeChoiceField(queryset=TrackingObject.objects.all(),
            level_indicator='  ')

The ampersands will be escaped, and the html will look like this:
    
    <option>&amp;nbsp;&amp;nbsp; item name</option>
Jan 20, 2010
#1 samuel.l...@gmail.com
You can use the Unicode Non-breaking space
(http://en.wikipedia.org/wiki/Non-breaking_space)

    level_indicator = unichr(0x00A0) * 4;


Powered by Google Project Hosting