diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-12-14 22:19:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-15 07:19:00 +0100 |
| commit | 550297d20d085bc5a440d905cd3cb2e286588ca8 (patch) | |
| tree | 7eb34c606850541d1296456eea8ef5c250eed165 /docs/ref | |
| parent | 593829a5aba605481a66c7c87e0e45061ee08bb5 (diff) | |
Added backticks to code literals in various docs.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/forms/fields.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/instances.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/querysets.txt | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 6e1033dc43..9438214a28 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -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. diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 643e5c3957..4222979972 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -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. diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 85c6bf6b17..70a6989306 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -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:: |
