Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix for issue #25 - code_comments/comment.py
Fix for issue #25

code_comments/comment.py
  • Loading branch information
sreenadh committed Sep 25, 2012
commit a8687ddca888ab11054bf28b9eebde73baeec53f
1 change: 1 addition & 0 deletions code_comments/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def default(self, o):
for_json = dict([(name, getattr(o, name)) for name in o.__dict__ if isinstance(getattr(o, name), (basestring, int, list, dict))])
for_json['formatted_date'] = o.formatted_date()
for_json['permalink'] = o.href()
for_json['id'] = o.id
return for_json
else:
return json.JSONEncoder.default(self, o)
Expand Down