projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d022263
)
set `Post.guid` and `Post.id` on `Post._setdata`.
author
CYBERDEViLNL
<CYBERDEViLNL@github.com>
Thu, 24 Jan 2019 11:46:17 +0000
(12:46 +0100)
committer
CYBERDEViLNL
<CYBERDEViLNL@github.com>
Thu, 24 Jan 2019 11:46:17 +0000
(12:46 +0100)
diaspy/models.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/models.py
b/diaspy/models.py
index e06f8dc40c2105a560f5f68fbe95f36773600d29..4cd0401c2b5240c95cd44a9e318fb62102a22a83 100644
(file)
--- 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', []))