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 #22 from akumria/fixup-remove-caption
Browse files Browse the repository at this point in the history
Fixup remove caption model
  • Loading branch information
Mike Krieger committed Feb 28, 2012
2 parents 6349372 + e079e1a commit ba62e57
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions instagram/models.py
Expand Up @@ -56,10 +56,6 @@ def object_from_dictionary(cls, entry):
for comment in entry['comments']['data']:
new_media.comments.append(Comment.object_from_dictionary(comment))

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

new_media.created_time = timestamp_to_datetime(entry['created_time'])

if entry['location'] and entry.has_key('id'):
Expand Down Expand Up @@ -106,9 +102,6 @@ def object_from_dictionary(cls, entry):
def __unicode__(self):
return "Comment: %s said \"%s\"" % (self.user.username, self.text)

class Caption(Comment):
pass

class Point(ApiModel):
def __init__(self, latitude, longitude):
self.latitude = latitude
Expand Down Expand Up @@ -153,5 +146,3 @@ def __init__(self, incoming_status="none", outgoing_status="none", target_user_i
self.incoming_status = incoming_status
self.outgoing_status = outgoing_status
self.target_user_is_private = target_user_is_private


0 comments on commit ba62e57

Please sign in to comment.