Moreover, is it possible to have abstract model classes?
Thanx,
Dado
thanx for your prompt reply.
In your original post you ask for 'inheritance' features that I also
really need. However, were your requests implemented? If so, it is not
documented! The way SQLObject v7 does this is to add an child_name
column to the superclass table and follow the inheritance hierarchy
downward <http://sqlobject.org/Inheritance.html>. I don't know how
performant this implementation is, but it feels very pythonic in the
way model classes behave.
For example, I would like to have a Node superclass which implements
node-to-node relationships to build a graph-like structure of my
website. I would then like to create subclasses of Node for different
content types (Pages, Images, Contacts, etc.)... with all of them
sharing the Node attributes (e.g., ID, title, description, created,
modified, etc) and behavior (getChildren, getParents, getSiblings,
getRelated). How would I do this with Django as it stands now? And how
far away in the future are the inheritance features that you requested
going to be implemented?
Thanx,
Dado
I would say that giving the developer a choice of STI and CTI (perhaps
via an option in META) for different use cases it's the best solution.
If not possible, I would go with CTI!!!
I am a Django newb but I would really love to implement what I have in
mind using Django instead of TurboGears/Subway. Any idea when the CTI
branch will be merged?!? And whether it will be there in 1.0?!?
Having CTI (perhaps in addition to STI) would really make Django better
than Rails.
Dado