On Mon, Jul 13, 2009 at 12:56 PM, Maksymus007 <maksymus...@gmail.com> wrote:
> > I recently switched to Django from PHP with Doctrine ORM - there was a > possibility to make model 'act as' for example NestedSet - which > automagically added required fields and methods to operate on Tree - > adding, moving,deleting nodes etc. Is this somehow possible in Django? > > > > In Python you'd just use inheritance or some sort of registration pattern. Take a look at django-treebeard and django-mptt for how they implement these things. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Voltaire "The people's good is the highest law." -- Cicero "Code can always be simpler than you think, but never as simple as you want" -- Me --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---