From 77b0cc9789db6313713af3ed31d8932b2a21c063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 11 Sep 2013 17:10:50 +0200 Subject: [PATCH] sync-from-tabellio: alter types to always start with a capital (#3592) --- docbow_project/pfwb/management/commands/sync-tabellio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docbow_project/pfwb/management/commands/sync-tabellio.py b/docbow_project/pfwb/management/commands/sync-tabellio.py index 69e6e4e..391b06c 100644 --- a/docbow_project/pfwb/management/commands/sync-tabellio.py +++ b/docbow_project/pfwb/management/commands/sync-tabellio.py @@ -213,6 +213,8 @@ class Command(BaseCommand): if not t: break id, descr = t + if descr[0] == descr[0].lower(): + descr = descr[0].upper() + descr[1:] try: doctype = TabellioDocType.objects.get(tabellio_doc_type=id)