Django-tastypie One-To-Many relationship
I'm trying to create a resource (Observation) that has 0 to unlimited comments. I'm stuck at the following error: "error": "The model '<Observation: Observation object>' has an empty attribute 'comments' and doesn't allow a null value." Also, adding null=True to comments = (...) will result in empty comment objects even though there should be comments for observations in question. I've also tried messing around with CommentResource2 path by changing it to full path. I've been following the reverse relationship guide from Tastypie's documentation: Reverse “Relationships” Here are my models: