2
0
Эх сурвалжийг харах

Removed unnecessary backslashes from docs.

Mariusz Felisiak 5 жил өмнө
parent
commit
9aeac29949

+ 1 - 1
docs/ref/contrib/postgres/search.txt

@@ -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.

+ 2 - 2
docs/ref/models/instances.txt

@@ -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

+ 2 - 2
docs/topics/auth/customizing.txt

@@ -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

+ 1 - 1
docs/topics/auth/default.txt

@@ -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