mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-27 00:40:40 +03:00
Resetting script prefix back to default after view processing
This commit is contained in:
parent
b71a24437a
commit
51ac8747d9
|
@ -156,7 +156,10 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
|
||||||
# merge with headers possibly set at some point in the view
|
# merge with headers possibly set at some point in the view
|
||||||
response.headers.update(self.headers)
|
response.headers.update(self.headers)
|
||||||
|
|
||||||
return self.render(response)
|
result = self.render(response)
|
||||||
|
set_script_prefix("/")
|
||||||
|
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
class ModelView(View):
|
class ModelView(View):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user