class Achievement(MyBaseModel):
parent_achievement = models.ForeignKey('self', blank=True, null=True, help_text="An achievement that must be done before this one is achieved") # long name since parent is reserved
I can do :
Achievement.objects.get(pk="1").parent_achievement
which is great. But how do I get all the children?
Achievement.objects.get(pk="1").parent_achievement_set
doesn't work (and probably should have some more notation around it), and I didn't see too much when searching.
Is it possible? Fall into SQL?