Populating a tastypie resource for a multi-table inheritance Django model
Given the following code I was wondering how to populate RecordsResource with each real record data: models.py class Record(models.Model): content_type = models.ForeignKey(ContentType, editable=False, null=True) user = models.ForeignKey(User, related_name='records') issued = models.DateTimeField(auto_now_add=True) date = models.DateField() def save(self, *args, **kwargs): if not self.content_type: self.content_type = ContentType.objects.get_for_model(self.__class__) super(Record, self).save(*args, **kwargs) def as_leaf_class(self): model = self.content_type.model_class() if model == self._