mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[3.1.x] Used :mimetype: role in various docs.
Backport of feb91dbda1
from master
This commit is contained in:
parent
15d76dc2ab
commit
345fa40cb5
7 changed files with 25 additions and 19 deletions
|
@ -1040,7 +1040,7 @@ can create it with the help of :py:class:`http.HTTPStatus`. For example::
|
|||
response. It inherits most behavior from its superclass with a couple
|
||||
differences:
|
||||
|
||||
Its default ``Content-Type`` header is set to ``application/json``.
|
||||
Its default ``Content-Type`` header is set to :mimetype:`application/json`.
|
||||
|
||||
The first parameter, ``data``, should be a ``dict`` instance. If the
|
||||
``safe`` parameter is set to ``False`` (see below) it can be any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue