[Answered ]-How can I get data from two ForeignKey fields in TastyPie?

2👍

Since the comments are linked to your eatery throug a ForeignKey, you need to define your EateryResource like this:

class EateryResource(ModelResource):

    user = fields.ToOneField(UserResource, 'author', full=True)
    comments = fields.ToManyField(EateryCommentsResource, 'comment_set', full=True)

Leave a comment