Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from prehensile/master
Browse files Browse the repository at this point in the history
Added captions to Media model objects
  • Loading branch information
Mike Krieger committed Feb 15, 2012
2 parents c3e48c3 + 63d826d commit 8f24b8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion instagram/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ def object_from_dictionary(cls, entry):

if entry['location']:
new_media.location = Location.object_from_dictionary(entry['location'])


new_media.caption = None
if entry['caption']:
new_media.caption = Comment.object_from_dictionary( entry['caption'] )

new_media.link = entry['link']

return new_media
Expand Down

0 comments on commit 8f24b8b

Please sign in to comment.