aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/templates
diff options
context:
space:
mode:
authorTai Lee2013-09-13 22:51:11 +1000
committerTai Lee2013-09-13 23:11:44 +1000
commitbb3261ca489104e3dea434aa11d76f370e938ca8 (patch)
tree2bfa86865bfad8f25a647eccaa61c6df044a60e2 /rest_framework/templates
parent068e4a18f490cff77364ecddd47a614ba3167013 (diff)
downloaddjango-rest-framework-bb3261ca489104e3dea434aa11d76f370e938ca8.tar.bz2
Fixed #1105 -- Add hook for custom context in `BrowsableAPIRenderer`.
Replace hard coded response status check with `allow_form` context variable, so that it can be overridden in a custom renderer class.
Diffstat (limited to 'rest_framework/templates')
-rw-r--r--rest_framework/templates/rest_framework/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html
index aa90e90c..88e58deb 100644
--- a/rest_framework/templates/rest_framework/base.html
+++ b/rest_framework/templates/rest_framework/base.html
@@ -122,7 +122,7 @@
</div>
</div>
- {% if response.status_code != 403 %}
+ {% if allow_form %}
{% if post_form or raw_data_post_form %}
<div {% if post_form %}class="tabbable"{% endif %}>