Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/internals/contributing/writing-code/coding-style.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Imports
:caption: ``django/contrib/admin/example.py``

# future
from __future__ import unicode_literals
from __future__ import annotations

# standard library
import json
Expand Down
20 changes: 7 additions & 13 deletions docs/intro/contributing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ It contains lots of great information and is a must-read for anyone who'd like
to become a regular contributor to Django. If you've got questions, it's
probably got the answers.

.. admonition:: Python 3 required!

The current version of Django doesn't support Python 2.7. Get Python 3 at
`Python's download page <https://www.python.org/downloads/>`_ or with your
operating system's package manager.

.. admonition:: For Windows users

See :ref:`install_python_windows` on Windows docs for additional guidance.
Expand Down Expand Up @@ -411,13 +405,13 @@ file:

.. function:: make_toast()

.. versionadded:: 2.2
.. versionadded:: 6.2

Returns ``'toast'``.

Since this new feature will be in an upcoming release it is also added to the
release notes for the next version of Django. Open the release notes for the
latest version in ``docs/releases/``, which at time of writing is ``2.2.txt``.
latest version in ``docs/releases/``, which at time of writing is ``6.2.txt``.
Add a note under the "Minor Features" header:

.. code-block:: rst
Expand Down Expand Up @@ -467,11 +461,11 @@ Use the arrow keys to move up and down.
+
+def make_toast():
+ return 'toast'
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt
diff --git a/docs/releases/6.2.txt b/docs/releases/6.2.txt
index 7d85d30c4a..81518187b3 100644
--- a/docs/releases/2.2.txt
+++ b/docs/releases/2.2.txt
@@ -40,6 +40,11 @@ database constraints. Constraints are added to models using the
--- a/docs/releases/6.2.txt
+++ b/docs/releases/6.2.txt
@@ -34,6 +34,11 @@
Minor features
--------------

Expand All @@ -497,7 +491,7 @@ Use the arrow keys to move up and down.
+
+.. function:: make_toast()
+
+.. versionadded:: 2.2
+.. versionadded:: 6.2
+
+Returns ``'toast'``.
diff --git a/tests/shortcuts/test_make_toast.py b/tests/shortcuts/test_make_toast.py
Expand Down
Loading