title: Tastypie building data bundle from canonical_resource_for('object')
body: <p>I am trying to write a Django TemplateView that returns a context parameter 'data' containing JSON based on tastypie's canonical resource:</p>
  
  <p><strong>resources</strong></p>
  
  <pre><code>class FooResource(ModelResource):
      bars = fields.ToManyField('app.api.v1.resources.BarResource', 'bars', null=True, full=True)
  
      class Meta:
          queryset = Foo.objects.all()
          resource_name = 'foo'
          # ...
  </code></pre>
  
  <p><strong>models</strong></p>
  
  <pre><code>class FooDetailView(TemplateView):
      template_name = 'app/foo_detail.html'
  
      def get_detail(self, slug):
          foo_resource = v1_api.canonical_resource_for('foo')
  
          try:
              foo = foo_resource.cached_obj_get(slug=slug)
          except Foo.DoesNotExist:
              raise Http404
  
          bundle = foo_resource.full_dehydrate(foo_resource.build_bundle(obj=foo))
          return bundle.data
  
      def get_context_data(self, **kwargs):
          base = super(FooDetailView, self).get_context_data(**kwargs)
          base['data'] = self.get_detail(base['params']['slug'])
          return base
  </code></pre>
  
  <p>This works, however the reverse relationship between Foo and Bar doesn't seem to get serialized by the manual process. The TemplateView returns these as strings, here's the response:</p>
  
  <pre><code>{
      'title': u'I am Foo.title',
      'bars': [&lt;Bundle for obj: '1' and with data: '{'title': u'I am Bar.title'}']
  }
  </code></pre>
  
  <p>So, question, how do I iterate over the reverse relationships when building the bundle?</p>