title: Creating a dynamic ORM resource in tastypie
body: <p>I'm looking to create a dynamic resource in tastypie.  Basically the idea is that there are a lot of models to hook up, so this may help save time with the standard no-frills resources.  </p>
  
  <p>I have most of this working, however I'm having trouble with the related fields being populated.  I'm overriding the constructor for a class that inherits from ModelResource, and in this constructor I'm attempting to set the tastypie relationships.  However when I review my resource the data is not being populated.  </p>
  
  <pre><code>setattr(self, field, fields.ForeignKey(class_thing, attribute=field, full=True))
  </code></pre>
  
  <p>Basically I'm using setattr in the constructor to try and hook up what the relationship should be.  If I'm goofing off with the instance I can see this object is getting created but the resource output is not changing.  Is anyone familiar enough with tastypie/doing something like this to give me a clue?</p>
  
  <p>Thanks for your time.</p>
  
  <p>Edit: Nevermind, just overrode dehydrate and did this from there.</p>