Issue 63: can we render forms like this?
Status:  WontFix
Owner: ----
Closed:  Sep 2010
Reported by MiratCan...@gmail.com, Sep 13, 2009
I need indentication to that forms but "--" symbols are really ugly. So i
wrote a script that builds html code with paddings. may be you can
implement that style to your forms

firefox.png is example screenshot

category_options_for_select.html is generated html code

bctfs.py (build category template for select) : builds <select> ...
</select> form for selecting.

bctfi.py is same with bctfs but, disables items that not selectible

Note :
my category model has :
selectible = models.BooleanField(help_text="can user add an announce at
that category?")

Can you implement that code to django-mptt? i am using that html templates
staticaly, may be you can make it as widget? thanks for your response
firefox.png
37.1 KB   View   Download
category_options_for_select.html
2.3 KB   View   Download
bctfs.py
716 bytes   View   Download
Sep 13, 2009
#1 MiratCan...@gmail.com
ops i forgot bctfi.py 
bctfi.py
749 bytes   View   Download
Sep 3, 2010
Project Member #2 craig.ds@gmail.com
So basically this is a manage.py command that generates static templates fragments.

This is fine if your tree is tiny and hardly ever changes, but when it does you have to go back and regenerate your template.

wontfix. I will be investigating what improvements we can make to the fields in mptt/forms.py though.

Status: WontFix
Sep 6, 2010
#3 matthias...@gmail.com
I think this is already possible right now.

mptt.forms.TreeNodeChoiceField is a subclass of ModelChoiceField which prepends a freely definable string to the model self-description (__unicode__).