Thank you, Daniel, I'm trying to use this:
http://magicrebirth.wordpress.com/2009/08/18/django-admin-and-mptt-2/

On Oct 15, 12:09 pm, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Oct 15, 8:16 am, ev <evpozdnia...@gmail.com> wrote:
>
> > May be there were developers solutions? Where should I look for?
>
> Look at the django-mptt project. It implements an efficient algorithm
> for tree access, and also has some useful libraries that help with
> displaying trees. You might be able to use one of them.
>
> Alternatively, you could represent the tree simply by making
> __unicode__ prefix a series of dashes equal to the level of the
> element:
>
>     def __unicode__(self):
>         return u"%s %s" % ((u'-' * self.level), self.name)
>
> This would show the elements like this:
> root
> -level1
> --level2
> ---level3
>
> etc.
> --
> DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to