def add_comment(self, user, content): comment = ArticleComment.create(self, user, content) Article.objects(id=str(self.id)).update_one(inc__comments_count=1) return comment