From 845a94166818cb36adece012519a6e823e63bc73 Mon Sep 17 00:00:00 2001 From: Rob Eroh Date: Wed, 30 Oct 2013 17:24:02 +1300 Subject: [PATCH] postgres supports dates in multi-column fields --- fixture/dataset/dataset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fixture/dataset/dataset.py b/fixture/dataset/dataset.py index 94b419d..c44aaeb 100644 --- a/fixture/dataset/dataset.py +++ b/fixture/dataset/dataset.py @@ -1,4 +1,3 @@ - """Representations of Data The main class you will work with is :class:`DataSet` but there are a @@ -6,7 +5,7 @@ """ -import sys, types +import sys, types, datetime from fixture.util import ObjRegistry class DataContainer(object): @@ -563,7 +562,8 @@ def add_ref_from_rowlike(rowlike): # ListProperty supports quite a few more types than these # see appengine.ext.db._ALLOWED_PROPERTY_TYPES elif type(c) in (types.StringType, types.UnicodeType, types.BooleanType, - types.FloatType, types.IntType): + types.FloatType, types.IntType, datetime.date, + datetime.time, datetime.datetime): continue else: raise TypeError(