diff options
| author | Sébastien Piquemal | 2012-02-10 11:05:20 +0200 | 
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-10 11:05:20 +0200 | 
| commit | b33579a7a18c2cbc6e3789d4a7dc78c82fb0fe80 (patch) | |
| tree | acfb589dee7f5aea5937d3705e1e4eaa696ae879 /djangorestframework/templates | |
| parent | db0b01037a95946938ccd44eae14d8779bfff1a9 (diff) | |
| download | django-rest-framework-b33579a7a18c2cbc6e3789d4a7dc78c82fb0fe80.tar.bz2 | |
attempt at fixing the examples
Diffstat (limited to 'djangorestframework/templates')
| -rw-r--r-- | djangorestframework/templates/renderer.html | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html index e396a58f..8b5c77c7 100644 --- a/djangorestframework/templates/renderer.html +++ b/djangorestframework/templates/renderer.html @@ -41,7 +41,7 @@  	    <h1>{{ name }}</h1>  	    <p>{{ description }}</p>  	    <div class='module'> -	    <pre><b>{{ response.status }} {{ response.status_text }}</b>{% autoescape off %} +	    <pre><b>{{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %}  {% for key, val in response.headers.items %}<b>{{ key }}:</b> {{ val|urlize_quoted_links }}  {% endfor %}  {{ content|urlize_quoted_links }}</pre>{% endautoescape %}</div> @@ -63,7 +63,7 @@  	{% endif %}  	{# Only display the POST/PUT/DELETE forms if method tunneling via POST forms is enabled and the user has permissions on this view. #} -	{% if METHOD_PARAM and response.status != 403 %} +	{% if METHOD_PARAM and response.status_code != 403 %}  		{% if 'POST' in view.allowed_methods %}  				<form action="{{ request.get_full_path }}" method="post" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %}>  | 
