hi, I have the following models:
class AbstractTaskOrProject(Model) parent = ForeignKey('AbstractProject') class Meta: abstract = True class AbstractProject(AbstractTaskOrProject) pass class Project(AbstractProject) pass class SubProject(AbstractProject) pass class Task(AbstractTaskOrProject) pass now the strange thing is that a Project instance has the following *_set backward relationships: * task_set * abstractproject_set but there is no subproject_set at all. The only thing I have is Project.subproject which is Subproject.DoesNotExist, given the OneToOneRelationship of the model inheritance. So this part is clear. Moreover, if I create a Subproject instance with a given Project as parent, then clearly mySubproject.parent gives back Parent. But Project.abstractproject_set is empty. I would like to get the SubProject instances from a given Project without running a separate SubProject.objects.filter(parent=myProject). I thought that SubProject will result in a backward relationship of subproject_set over the projects, but this did not happen. Could someone explain me where I get lost in the documentation? thanks, Viktor -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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=.