Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您缺少观察模型上的“评论”属性,要么添加
observation = models.ForeignKey(Observation, related_name="comments")
或更改为
comments = fields.ToManyField('apps.api.CommentResource2', 'comment_set', null=True)