mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-26 15:44:01 +00:00
Custom Page Manager documentation fix
Thanks to @nimasmi for reporting!
This commit is contained in:
parent
bb37dec700
commit
a326cd8559
1 changed files with 3 additions and 1 deletions
|
|
@ -473,7 +473,9 @@ Alternately, if you only need to add extra ``QuerySet`` methods, you can inherit
|
|||
today = timezone.localtime(timezone.now()).date()
|
||||
return self.filter(start_date__gte=today)
|
||||
|
||||
EventPageManager = PageManager.from_queryset(EventPageQuerySet)
|
||||
|
||||
class EventPage(Page):
|
||||
start_date = models.DateField()
|
||||
|
||||
objects = PageManager.from_queryset(EventPageQuerySet)
|
||||
objects = EventPageManager()
|
||||
|
|
|
|||
Loading…
Reference in a new issue