Merge pull request #97 from anemitz/master

ADMIN_MEDIA_PREFIX no longer supported in django1.4
This commit is contained in:
Tom Christie 2011-12-20 04:19:42 -08:00
commit ebbc60a640

View File

@ -326,7 +326,7 @@ class DocumentingTemplateRenderer(BaseRenderer):
'logout_url': logout_url, 'logout_url': logout_url,
'FORMAT_PARAM': self._FORMAT_QUERY_PARAM, 'FORMAT_PARAM': self._FORMAT_QUERY_PARAM,
'METHOD_PARAM': getattr(self.view, '_METHOD_PARAM', None), '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) ret = template.render(context)