mirror of
https://github.com/fergalmoran/dss.api.git
synced 2026-01-07 17:13:58 +00:00
Fixed basemodel static url
This commit is contained in:
@@ -33,7 +33,7 @@ class BaseModel(models.Model):
|
||||
def get_image_url(self, image, default):
|
||||
try:
|
||||
if os.path.isfile(image.path):
|
||||
ret = "{0}/{1}/{2}".format(settings.STATIC_URL, settings.MEDIA_URL, image)
|
||||
ret = "{0}/{1}".format(settings.MEDIA_URL, image)
|
||||
return url.urlclean(ret)
|
||||
except Exception, ex:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user