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)