I have a Django model (schedule) with the class of entity, that is the parent of Activity, that is the parent of Event.
class Entity(models.Model):
<...>
class Activity(models.Model):
<...>
team_entity = models.ForeignKey(Entity)
<...>
class Event(models.Model):
<...>
activity = models.ForeignKey(Activity)
<...>
How do I serialize and get both the child object and grand children as part of the JSON file?
I now use django-piston. This does the trick.