Fix typo in migration. GitHub issue #263. Thanks to @simeon-walker

for the find.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-31 18:58:40 -04:00
parent 7a67604551
commit e19ee79b56

View File

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