From 5d41fd22dc68161e28aea5aabc4097c039338212 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 14 Dec 2020 22:19:00 -0800 Subject: [3.1.x] Added backticks to code literals in various docs. Backport of 550297d20d085bc5a440d905cd3cb2e286588ca8 from master --- docs/ref/models/instances.txt | 2 +- docs/ref/models/querysets.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/ref/models') diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index eb1bb799d1..036b5e858d 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -568,7 +568,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 14b508c512..f0264ae125 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -814,8 +814,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:: -- cgit v1.3