From 0198b7e2b639d013461eb851fea5b81f90f0ac59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 1 Dec 2011 08:10:30 +0100 Subject: [PATCH] explicitely ignore "answers to written question" document type --- tabellio/searchform/form.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py index 464b613..e261d6d 100644 --- a/tabellio/searchform/form.py +++ b/tabellio/searchform/form.py @@ -214,6 +214,8 @@ def possible_document_types(context): for doctype in possible_doctypes: if not doctype: continue + if doctype == u'Réponse à question écrite': + continue doctype_id = doctype.encode('ascii', 'replace') doctype_str = MAPPING.get(doctype, doctype) terms.append(SimpleVocabulary.createTerm(doctype_id, doctype_id, doctype_str))