From 96d13ead60e0c798146ffaadd951877a8077ad9d Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 31 Aug 2011 15:00:53 +0200 Subject: [PATCH 1/1] minor fix --- apps/api/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.20.1