mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
[4.0.x] Corrected signatures of some functions in docs.
Backport of 178109c173
from main
This commit is contained in:
parent
6554f00df6
commit
dfda5ff722
4 changed files with 9 additions and 9 deletions
|
@ -1295,7 +1295,7 @@ For each action, you can supply either a list of values or a string. When the
|
|||
value already exists in the list, ``append`` and ``prepend`` have no effect;
|
||||
neither does ``remove`` when the value doesn't exist.
|
||||
|
||||
.. function:: override_settings
|
||||
.. function:: override_settings(**kwargs)
|
||||
|
||||
In case you want to override a setting for a test method, Django provides the
|
||||
:func:`~django.test.override_settings` decorator (see :pep:`318`). It's used
|
||||
|
@ -1321,7 +1321,7 @@ The decorator can also be applied to :class:`~django.test.TestCase` classes::
|
|||
response = self.client.get('/sekrit/')
|
||||
self.assertRedirects(response, '/other/login/?next=/sekrit/')
|
||||
|
||||
.. function:: modify_settings
|
||||
.. function:: modify_settings(*args, **kwargs)
|
||||
|
||||
Likewise, Django provides the :func:`~django.test.modify_settings`
|
||||
decorator::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue