From 7741e67c6edddb705e170a0dbcbb908325b8bebd Mon Sep 17 00:00:00 2001 From: Stephen Zerfas <36237793+szerfas1@users.noreply.github.com> Date: Fri, 1 May 2020 12:20:59 -0700 Subject: [PATCH] Clarification in conditional docs --- docs/conditional.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conditional.rst b/docs/conditional.rst index bcac16cf0..86a9f64d2 100644 --- a/docs/conditional.rst +++ b/docs/conditional.rst @@ -100,7 +100,7 @@ This example will update a `Thread` item, if the `views` attribute is less than .. code-block:: python thread_item.update(condition=(Thread.views < 5) | (Thread.views > 10)) - +Note that here capital-T `Thread` refers to the record currently saved in the DB with the same unique ID as the Thread model instance `thread_item`, rather than the Thread model class. Conditional Model.delete ^^^^^^^^^^^^^^^^^^^^^^^^