[Mpuls-commits] r5438 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Oct 10 13:51:09 CEST 2011
Author: torsten
Date: 2011-10-10 13:51:08 +0200 (Mon, 10 Oct 2011)
New Revision: 5438
Modified:
base/trunk/mpulsweb/lib/validators.py
Log:
sdate end edate can be empty now but defaults to None. If one of the dates is
None the date will not part of the search condition at all. This should fix
isses2339.
Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py 2011-10-10 09:21:56 UTC (rev 5437)
+++ base/trunk/mpulsweb/lib/validators.py 2011-10-10 11:51:08 UTC (rev 5438)
@@ -684,8 +684,8 @@
standin = Int(if_missing=0)
editor = Int(if_missing=-1)
phase = ForEach(Int(), convert_to_list=True)
- sdate = DateCheck()
- edate = DateCheck()
+ sdate = DateCheck(if_missing=None)
+ edate = DateCheck(if_missing=None)
gender = Int(if_missing=-2)
class EvaluationSearchCaseForm(SearchCaseForm):
More information about the Mpuls-commits
mailing list