From: Radek Czajka Date: Wed, 31 Aug 2011 13:00:53 +0000 (+0200) Subject: minor fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/96d13ead60e0c798146ffaadd951877a8077ad9d?ds=sidebyside minor fix --- diff --git a/apps/api/handlers.py b/apps/api/handlers.py index 9bb65d00e..f23416751 100644 --- a/apps/api/handlers.py +++ b/apps/api/handlers.py @@ -68,7 +68,7 @@ class CatalogueHandler(BaseHandler): media = [] for m in book.media.filter(type=field): media.append({ - 'url': m.file.get_absolute_url(), + 'url': m.file.url, 'size': m.file.size, }) if media: