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:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user