diff --git a/docs/guide/querying.rst b/docs/guide/querying.rst index 4447f7da..690569a9 100644 --- a/docs/guide/querying.rst +++ b/docs/guide/querying.rst @@ -172,7 +172,7 @@ custom manager methods as you like:: @queryset_manager def live_posts(doc_cls, queryset): - return queryset.filter(published=True) + return queryset(published=True).filter(published=True) BlogPost(title='test1', published=False).save() BlogPost(title='test2', published=True).save()