Permalink
Browse files

some more __unicode__ methods would be useful

  • Loading branch information...
1 parent cf41ed4 commit 3634f0ab361e592fe10be030bc73e37fc2c8025d @ejesse committed Jan 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 instagram/models.py
View
@@ -84,6 +84,9 @@ class Point(ApiModel):
def __init__(self, latitude, longitude):
self.latitude = latitude
self.longitude = longitude
+
+ def __unicode__(self):
+ return "latitude: %s longitude: %s" % (self.latitude,self.longitude)
class Location(ApiModel):
name = None
@@ -108,7 +111,7 @@ def object_from_dictionary(cls, entry):
def __unicode__(self):
- return "Location %s with latitude %s and longitude %s" % (self.name,self.latitude,self.longitude)
+ return "Location %s with point %s" % (self.name,self.point)
class User(ApiModel):

0 comments on commit 3634f0a

Please sign in to comment.