From 172ef1e79a6653c02f7a02b3eccc4cf50452a50f Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 15 Jan 2015 03:44:16 -0400 Subject: [PATCH] Make sure the ocr field of document type exists before we try to put data into it --- ...foldersource__chg_field_intervalbasemodel_document_type.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mayan/apps/sources/south_migrations/0009_auto__del_watchfoldersource__chg_field_intervalbasemodel_document_type.py b/mayan/apps/sources/south_migrations/0009_auto__del_watchfoldersource__chg_field_intervalbasemodel_document_type.py index 30da4f66de..32d5d923d6 100644 --- a/mayan/apps/sources/south_migrations/0009_auto__del_watchfoldersource__chg_field_intervalbasemodel_document_type.py +++ b/mayan/apps/sources/south_migrations/0009_auto__del_watchfoldersource__chg_field_intervalbasemodel_document_type.py @@ -14,6 +14,10 @@ def fake_get_or_create(model, *args, **kwargs): class Migration(SchemaMigration): + depends_on = ( + ('documents', '0024_auto__add_field_documenttype_ocr'), + ) + needed_by = ( ('documents', '0031_remove_orphan_documents'), )