From f45ec08a2cee694c6034a321d78bc1892384147b Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 17 Sep 2015 14:31:30 +0100 Subject: [PATCH] Add first publish/updated dates to search index --- wagtail/wagtailcore/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index 90d2c2aa8..42fe99cdd 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -316,6 +316,8 @@ class Page(six.with_metaclass(PageBase, MP_Node, ClusterableModel, index.Indexed index.FilterField('depth'), index.FilterField('locked'), index.FilterField('show_in_menus'), + index.FilterField('first_published_at'), + index.FilterField('latest_revision_created_at'), ) # Do not allow plain Page instances to be created through the Wagtail admin