Skip to content

Commit

Permalink
Improve docs clarity (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkilby committed Mar 4, 2020
1 parent fbb67b6 commit 91526ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/filters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91526ba

Please sign in to comment.