aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django')
-rw-r--r--bn_django/photos/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bn_django/photos/models.py b/bn_django/photos/models.py
index 346e19d..4964467 100644
--- a/bn_django/photos/models.py
+++ b/bn_django/photos/models.py
@@ -149,7 +149,10 @@ class Photo(models.Model):
return os.path.join(settings.MEDIA_ROOT, self.image.name)
def fullurl(self):
- return STOCKPHOTO_URL + '/' + self.image.name
+ if(self.image.name.startswith("photos/")):
+ return STOCKPHOTO_URL + '/' + self.image.name[7:]
+ else:
+ return STOCKPHOTO_URL + '/' + self.image.name
def next(self):