Removed unnecessary backslashes from docs.

This commit is contained in:
Mariusz Felisiak 2019-06-20 14:04:36 +02:00 committed by GitHub
parent 7f19e37135
commit 9aeac29949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ To use the ``search`` lookup, ``'django.contrib.postgres'`` must be in your
``SearchVector``
================
.. class:: SearchVector(\*expressions, config=None, weight=None)
.. class:: SearchVector(*expressions, config=None, weight=None)
Searching against a single field is great but rather limiting. The ``Entry``
instances we're searching belong to a ``Blog``, which has a ``tagline`` field.

View File

@ -797,8 +797,8 @@ For example::
>>> p.get_shirt_size_display()
'Large'
.. method:: Model.get_next_by_FOO(\**kwargs)
.. method:: Model.get_previous_by_FOO(\**kwargs)
.. method:: Model.get_next_by_FOO(**kwargs)
.. method:: Model.get_previous_by_FOO(**kwargs)
For every :class:`~django.db.models.DateField` and
:class:`~django.db.models.DateTimeField` that does not have :attr:`null=True

View File

@ -727,7 +727,7 @@ providing two additional methods:
.. class:: models.CustomUserManager
.. method:: models.CustomUserManager.create_user(*username_field*, password=None, \**other_fields)
.. method:: models.CustomUserManager.create_user(*username_field*, password=None, **other_fields)
The prototype of ``create_user()`` should accept the username field,
plus all required fields as arguments. For example, if your user model
@ -738,7 +738,7 @@ providing two additional methods:
# create user here
...
.. method:: models.CustomUserManager.create_superuser(*username_field*, password, \**other_fields)
.. method:: models.CustomUserManager.create_superuser(*username_field*, password, **other_fields)
The prototype of ``create_superuser()`` should accept the username
field, plus all required fields as arguments. For example, if your user

View File

@ -115,7 +115,7 @@ Changing a user's password will log out all their sessions. See
Authenticating users
--------------------
.. function:: authenticate(request=None, \**credentials)
.. function:: authenticate(request=None, **credentials)
Use :func:`~django.contrib.auth.authenticate()` to verify a set of
credentials. It takes credentials as keyword arguments, ``username`` and