def __unicode__(self):
return "%s" %(self.name,)
+ def __str__(self):
+ return "%s" %(self.name,)
+
def get_upload_path(photo, filename):
if photo.album:
return "photos/%s/%s" %(photo.album.slug, filename)
def __unicode__(self):
return "%s" %(self.image)
+
+ def __str__(self):
+ return "%s" %(self.image)