Skip to content

Commit a8687dd

Browse files
committed
Fix for issue trac-hacks#25 - code_comments/comment.py
Fix for issue trac-hacks#25 code_comments/comment.py
1 parent fce63fb commit a8687dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code_comments/comment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def default(self, o):
150150
for_json = dict([(name, getattr(o, name)) for name in o.__dict__ if isinstance(getattr(o, name), (basestring, int, list, dict))])
151151
for_json['formatted_date'] = o.formatted_date()
152152
for_json['permalink'] = o.href()
153+
for_json['id'] = o.id
153154
return for_json
154155
else:
155156
return json.JSONEncoder.default(self, o)

0 commit comments

Comments
 (0)