From e19ee79b568625c307a4a9c37c573180fa838766 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 31 Jul 2017 18:58:40 -0400 Subject: [PATCH] Fix typo in migration. GitHub issue #263. Thanks to @simeon-walker for the find. Signed-off-by: Roberto Rosario --- mayan/apps/ocr/migrations/0004_documenttypesettings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/ocr/migrations/0004_documenttypesettings.py b/mayan/apps/ocr/migrations/0004_documenttypesettings.py index abf11f8996..2c792c7262 100644 --- a/mayan/apps/ocr/migrations/0004_documenttypesettings.py +++ b/mayan/apps/ocr/migrations/0004_documenttypesettings.py @@ -11,7 +11,7 @@ def create_ocr_setting_for_existing_document_types(apps, schema_editor): for document_type in DocumentType.objects.all(): try: DocumentTypeSettings.objects.create(document_type=document_type) - except DocumentTypeSettings.DoesNotExists: + except DocumentTypeSettings.DoesNotExist: pass