Re: Creating a hierarchy of objects in my api.py

2012-01-31 Thread Stanwin Siow
Hello, Any luck on this yet? Best Regards, Stanwin Siow On Jan 31, 2012, at 11:39 AM, St@n wrote: > Hello, > > I am playing around with tastypie and i want to create a hierarchy of > data. > > What i currently have is this: > > > class keywordResource(ModelResource): >tweets = fields

Creating a hierarchy of objects in my api.py

2012-01-30 Thread St@n
Hello, I am playing around with tastypie and i want to create a hierarchy of data. What i currently have is this: class keywordResource(ModelResource): tweets = fields.ToManyField(timelineResource, 'tweets', full=True) class Meta: queryset = Keyword.objects.all() resourc