{% extends "admin/base_site_nav.html" %} {% load rest_framework %} {% load i18n %} {% block extrahead %}{{block.super}} {% endblock %} {% block content %}

{% comment %}Translators: Translation included with Django {% endcomment %} {% trans "HTTP request" %}:
  {{ request.method }}
{{request.prefix}}{{ request.get_full_path }}

{% comment %}Translators: Translation included with Django {% endcomment %} {% trans "HTTP response headers" %}:
  HTTP {{ response.status_code }} {{ response.status_text }}
{% autoescape off %} {% for key, val in response_headers.items %}  {{ key }}:   {{ val|break_long_headers|urlize_quoted_links }}
{% endfor %}
{% comment %}Translators: Translation included with Django {% endcomment %} {% trans "HTTP response content" %}:
{% endautoescape %}
{% if 'GET' in allowed_methods %}

{% blocktrans with model=name %}Make a GET request to read {{ model }} object(s){% endblocktrans %}

{% if api_settings.URL_FORMAT_OVERRIDE %} {% for format in available_formats %} {% endif %}
{% endfor %} {% else %} {% blocktrans with http_method='GET' %}{{ http_method }} request{% endblocktrans %}
{% endif %} {% if options_form %}

{% blocktrans with model=name %}Make an OPTIONS request to see all fields on the {{ model }} object{% endblocktrans %}

{% endif %} {% if display_edit_forms %} {% if post_form or raw_data_post_form %} {% if post_form %}

{% blocktrans with model=name %}Make a POST request using a HTML form to create a new {{ model }} object{% endblocktrans %}

{% with form=post_form %}
{% csrf_token %} {{ post_form }}
{% endwith %}
{% endif %}

{% blocktrans with model=name %}Make a POST request in raw format to create one or more new {{ model }} objects{% endblocktrans %}

{% with form=raw_data_post_form %}
{% include "rest_framework/raw_data_form.html" %}
{% endwith %}
{% endif %} {% if put_form or raw_data_put_form or raw_data_patch_form %}

{% blocktrans with model=name %}Make a PUT request using a HTML form to update one {{ model }} object{% endblocktrans %}

{{ put_form }}

{% blocktrans with model=name %}Make a PUT or PATCH request in raw format to update an existing or more existing {{ model }} objects{% endblocktrans %}

{% with form=raw_data_put_or_patch_form %}
{% include "rest_framework/raw_data_form.html" %}
{% if raw_data_put_form %} {% endif %} {% if raw_data_patch_form %} {% endif %}
{% endwith %}
{% endif %} {% if delete_form %}

{% blocktrans with model=name %}Make a DELETE request to delete one or more existing {{ model }} objects (requires filtering){% endblocktrans %}

{% endif %} {% endif %}
{% endblock %}