From f5e3496dbef7b60ef1cd86c867285647cc5e12ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 17 Nov 2011 18:31:54 +0100 Subject: [PATCH] nodoc column is defined as integer, convert it to string for indexes --- tabellio/pcfdb/sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py index 92bcaab..2ab1e4d 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -762,7 +762,10 @@ class SyncFromPcfDbView(BrowserView): object.session = sess object.date = date object.no = no - object.nodoc = nodoc + if nodoc: + object.nodoc = str(nodoc) + else: + object.nodoc = None object.doctype = doctype object.file_image_id = image_id object.topics = topics