Repairing unit test failures
If fieldname is 'deleted', field.type.python_type raise NotImplementedError. Change-Id: I47246ce9a3b0c8d2a3ea44e825d9604f5b14ed38 Closes-Bug: #1647574
This commit is contained in:
@@ -132,7 +132,8 @@ class Connection(api.BaseConnection):
|
||||
def __add_simple_filter(self, query, model, fieldname, value, operator_):
|
||||
field = getattr(model, fieldname)
|
||||
|
||||
if field.type.python_type is datetime.datetime and value:
|
||||
if (fieldname != 'deleted' and value and
|
||||
field.type.python_type is datetime.datetime):
|
||||
if not isinstance(value, datetime.datetime):
|
||||
value = timeutils.parse_isotime(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user