diff options
| author | Tai Lee | 2013-09-13 22:51:11 +1000 | 
|---|---|---|
| committer | Tai Lee | 2013-09-13 23:11:44 +1000 | 
| commit | bb3261ca489104e3dea434aa11d76f370e938ca8 (patch) | |
| tree | 2bfa86865bfad8f25a647eccaa61c6df044a60e2 /rest_framework/templates | |
| parent | 068e4a18f490cff77364ecddd47a614ba3167013 (diff) | |
| download | django-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.html | 2 | 
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 %}>  | 
