- {% if 'OPTIONS' in allowed_methods %}
+ {% if 'OPTIONS' in allowed_methods and api_settings.FORM_METHOD_OVERRIDE %}
{% endif %}
@@ -57,7 +57,7 @@
{{ name }}
{{ description }}
-
{{ response.status_code }} {{ response.status_text }}{% autoescape off %}
+ HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %}
{% for key, val in response.items %}{{ key }}: {{ val|urlize_quoted_links }}
{% endfor %}
{{ content|urlize_quoted_links }}
{% endautoescape %}
@@ -78,21 +78,24 @@
{% endif %}
+ {% comment %}
+ DROP POST/PUT/DELETE until the forms are working with REST framework 2
+
{# 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_code != 403 %}
+ {% if response.status_code != 403 %}
{% if 'POST' in allowed_methods %}
-