Switch advanced search inputs datatype from date to datetime to match new indexes types
--- a/src/pyams_content/shared/common/zmi/search.py Thu Jul 13 11:00:19 2017 +0200
+++ b/src/pyams_content/shared/common/zmi/search.py Wed Aug 02 14:48:18 2017 +0200
@@ -49,7 +49,7 @@
from pyramid.view import view_config
from z3c.form import field
from zope.interface import implementer
-from zope.schema import Date, Choice
+from zope.schema import Datetime, Choice
from pyams_content import _
@@ -122,17 +122,17 @@
vocabulary=STATES_VOCABULARY,
required=False)
- created_after = Date(title=_("Created after..."),
- required=False)
+ created_after = Datetime(title=_("Created after..."),
+ required=False)
- created_before = Date(title=_("Created before..."),
- required=False)
+ created_before = Datetime(title=_("Created before..."),
+ required=False)
- modified_after = Date(title=_("Modified after..."),
- required=False)
+ modified_after = Datetime(title=_("Modified after..."),
+ required=False)
- modified_before = Date(title=_("Modified before..."),
- required=False)
+ modified_before = Datetime(title=_("Modified before..."),
+ required=False)
@template_config(template='templates/advanced-search.pt', layer=IPyAMSLayer)