nodoc column is defined as integer, convert it to string for indexes

This commit is contained in:
Frédéric Péters 2011-11-17 18:31:54 +01:00
parent 0419f0e243
commit f5e3496dbe
1 changed files with 4 additions and 1 deletions

View File

@ -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