Added backticks to code literals in various docs.

This commit is contained in:
Jon Dufresne 2020-12-14 22:19:00 -08:00 committed by GitHub
parent 593829a5ab
commit 550297d20d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 10 deletions

View file

@ -1323,7 +1323,7 @@ generating choices. See :ref:`iterating-relationship-choices` for details.
.. class:: ModelMultipleChoiceField(**kwargs)
* Default widget: :class:`SelectMultiple`
* Empty value: An empty ``QuerySet`` (self.queryset.none())
* Empty value: An empty ``QuerySet`` (``self.queryset.none()``)
* Normalizes to: A ``QuerySet`` of model instances.
* Validates that every id in the given list of values exists in the
queryset.

View file

@ -562,7 +562,7 @@ all of the model fields from being updated in the database. For example::
product.save(update_fields=['name'])
The ``update_fields`` argument can be any iterable containing strings. An
empty ``update_fields`` iterable will skip the save. A value of None will
empty ``update_fields`` iterable will skip the save. A value of ``None`` will
perform an update on all fields.
Specifying ``update_fields`` will force an update.

View file

@ -864,8 +864,8 @@ ambiguous datetimes in daylight saving time. By default (when ``is_dst=None``),
.. method:: none()
Calling none() will create a queryset that never returns any objects and no
query will be executed when accessing the results. A qs.none() queryset
Calling ``none()`` will create a queryset that never returns any objects and no
query will be executed when accessing the results. A ``qs.none()`` queryset
is an instance of ``EmptyQuerySet``.
Examples::