Hi guys, mi first post on group, sorry for poor english.

Someone can help me to model a association between the class and a
parent of a class with childs?
I want a polymorphic association to map a childs with the parent
type.
Something like :

One class named A associated to a superclass named B , class B has two
class inheriting him (C and D), the question is , Can I use the childs
to persist on class A association?,  a polimorphic save, On java the
supertipe can reference all subtipes and i can save a child in the
same place off parent. On django , can I?

I read the model documentation and I found a  abstract inheritance,
this sounds good, but it creates two tables on database, the solution
was create a single class without inheritance with a field named type,
where I manually insert what type of the class is persisted. Someone
made something like this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to