From 9f63e8dd1d23f9975e90e92d9aaf3def321b5e9b Mon Sep 17 00:00:00 2001 From: Anthony Nemitz Date: Mon, 19 Dec 2011 22:09:09 -0800 Subject: [PATCH] ADMIN_MEDIA_PREFIX is deprecated in django1.4 --- djangorestframework/renderers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py index aae2cab25..3f951ba1f 100644 --- a/djangorestframework/renderers.py +++ b/djangorestframework/renderers.py @@ -326,7 +326,7 @@ class DocumentingTemplateRenderer(BaseRenderer): 'logout_url': logout_url, 'FORMAT_PARAM': self._FORMAT_QUERY_PARAM, 'METHOD_PARAM': getattr(self.view, '_METHOD_PARAM', None), - 'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX + 'ADMIN_MEDIA_PREFIX': getattr(settings, 'ADMIN_MEDIA_PREFIX', None), }) ret = template.render(context)