Fixed documentation bug.
This commit is contained in:
parent
47bfeec115
commit
9596a25bb9
@ -174,7 +174,7 @@ custom manager methods as you like::
|
||||
|
||||
@queryset_manager
|
||||
def live_posts(doc_cls, queryset):
|
||||
return queryset(published=True).filter(published=True)
|
||||
return queryset.filter(published=True)
|
||||
|
||||
BlogPost(title='test1', published=False).save()
|
||||
BlogPost(title='test2', published=True).save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user