1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in docs.

This commit is contained in:
David Smith
2025-05-27 17:37:22 +01:00
committed by nessita
parent ef2f16bc48
commit 6f8e23d1c1
95 changed files with 445 additions and 445 deletions

View File

@@ -282,7 +282,7 @@ plug-and-play URLs. Since polls are in their own URLconf
"/fun_polls/", or under "/content/polls/", or any other path root, and the
app will still work.
.. admonition:: When to use :func:`~django.urls.include()`
.. admonition:: When to use :func:`~django.urls.include`
You should always use ``include()`` when you include other URL patterns.
The only exception is ``admin.site.urls``, which is a pre-built URLconf

View File

@@ -557,8 +557,8 @@ repetition out of the process of creating questions.
"No polls are available." and verifies the ``latest_question_list`` is empty.
Note that the :class:`django.test.TestCase` class provides some additional
assertion methods. In these examples, we use
:meth:`~django.test.SimpleTestCase.assertContains()` and
:meth:`~django.test.TransactionTestCase.assertQuerySetEqual()`.
:meth:`~django.test.SimpleTestCase.assertContains` and
:meth:`~django.test.TransactionTestCase.assertQuerySetEqual`.
In ``test_past_question``, we create a question and verify that it appears in
the list.