X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/eeafdfccb63314d85802f3064b6fb904375bda03..77c6bd606ee5003500ed80ea1e3561993f038e05:/sommitrealweird/photo/models.py diff --git a/sommitrealweird/photo/models.py b/sommitrealweird/photo/models.py index 31751c3..7bf1137 100644 --- a/sommitrealweird/photo/models.py +++ b/sommitrealweird/photo/models.py @@ -16,6 +16,9 @@ class Album(models.Model): 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) @@ -30,3 +33,6 @@ class Photo(models.Model): def __unicode__(self): return "%s" %(self.image) + + def __str__(self): + return "%s" %(self.image)