set `Post.guid` and `Post.id` on `Post._setdata`.
authorCYBERDEViLNL <CYBERDEViLNL@github.com>
Thu, 24 Jan 2019 11:46:17 +0000 (12:46 +0100)
committerCYBERDEViLNL <CYBERDEViLNL@github.com>
Thu, 24 Jan 2019 11:46:17 +0000 (12:46 +0100)
diaspy/models.py

index e06f8dc40c2105a560f5f68fbe95f36773600d29..4cd0401c2b5240c95cd44a9e318fb62102a22a83 100644 (file)
@@ -524,6 +524,8 @@ class Post():
 
        def _setdata(self, data):
                self._data = data
+               self.guid = data["guid"]
+               self.id = data["id"]
                if not bool(self.comments) and data['interactions'].get('comments', []):
                        self.comments.set_json(data['interactions'].get('comments', []))