Re: Tree structure

2005-11-20 Thread Jonathan Daugherty
# I'm need to manage catalog of products in my site with multilevel # structure. How can I'm create model, which can have parents of same # type as model?.. # # something like that: # # class Category(meta.Model): # # name = meta.CharField(maxlength=500) # parent = meta.ForeignKey(Categ

Tree structure

2005-11-20 Thread Ivan Fedorov
I'm need to manage catalog of products in my site with multilevel structure. How can I'm create model, which can have parents of same type as model?.. something like that: class Category(meta.Model): name = meta.CharField(maxlength=500) parent = meta.ForeignKey(Category) def __rep