From 91526ba10ccc1883505ac5e3b0c1a922cd7fe6bd Mon Sep 17 00:00:00 2001 From: Ryan P Kilby Date: Wed, 4 Mar 2020 13:17:44 -0800 Subject: [PATCH] Improve docs clarity (#1181) --- docs/ref/filters.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/filters.txt b/docs/ref/filters.txt index 06319111a..1876f45a2 100644 --- a/docs/ref/filters.txt +++ b/docs/ref/filters.txt @@ -73,8 +73,8 @@ transformation and empty value checking should be unnecessary. lookup = '__'.join([name, 'isnull']) return queryset.filter(**{lookup: False}) - # alternatively, it may not be necessary to construct the lookup. - return queryset.filter(published_on__isnull=False) + # alternatively, you could opt to hardcode the lookup. e.g., + # return queryset.filter(published_on__isnull=False) class Meta: model = Book