From 365244bc2f101f16ddabba39add32250395476ad Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 11 Mar 2021 12:57:56 +0000 Subject: [PATCH] Fix typo --- content/posts/django-orm-performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/posts/django-orm-performance.md b/content/posts/django-orm-performance.md index b8bfde8..fa62f5f 100644 --- a/content/posts/django-orm-performance.md +++ b/content/posts/django-orm-performance.md @@ -80,7 +80,7 @@ I've seen it many times. Given a list of models, set all the values of property Querysets have an `.update` method, which takes the same arguments as `.filter`, but rather than filtering based on them, it updates the rows in the queryset based on the arguments. ```python -ToDo.objects.filter(is_completed=True).updated(is_completed=False) +ToDo.objects.filter(is_completed=True).update(is_completed=False) ``` Simple, and a single query! But what if we want to update the value of 1 property to another?