From 8d35c36b5a8b6eef0826cd768efd80dae080afd3 Mon Sep 17 00:00:00 2001 From: CYBERDEViLNL Date: Thu, 24 Jan 2019 12:46:17 +0100 Subject: [PATCH] set `Post.guid` and `Post.id` on `Post._setdata`. --- diaspy/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diaspy/models.py b/diaspy/models.py index e06f8dc..4cd0401 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -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', [])) -- 2.25.1