mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
ADMIN_MEDIA_PREFIX is deprecated in django1.4
This commit is contained in:
parent
8af629f566
commit
9f63e8dd1d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user