documentation bug fixed
This commit is contained in:
parent
eecc6188a7
commit
682326c130
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user