Remove the documents app settings
Remove DOCUMENTS_DISABLE_BASE_IMAGE_CACHE, DOCUMENTS_DISABLE_TRANSFORMED_IMAGE_CACHE, and DOCUMENTS_FIX_ORIENTATION settings. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -9,9 +9,6 @@ def get_latest_version(document):
|
||||
|
||||
def operation_reset_document_pages(apps, schema_editor):
|
||||
Document = apps.get_model(app_label='documents', model_name='Document')
|
||||
DocumentPage = apps.get_model(
|
||||
app_label='documents', model_name='DocumentPage'
|
||||
)
|
||||
|
||||
# Define inside the function to use the migration's apps instance
|
||||
def pages_reset(document):
|
||||
@@ -40,9 +37,6 @@ def operation_reset_document_pages(apps, schema_editor):
|
||||
|
||||
def operation_reset_document_pages_reverse(apps, schema_editor):
|
||||
Document = apps.get_model(app_label='documents', model_name='Document')
|
||||
DocumentPage = apps.get_model(
|
||||
app_label='documents', model_name='DocumentPage'
|
||||
)
|
||||
|
||||
for document in Document.objects.using(schema_editor.connection.alias).all():
|
||||
for document_page in document.pages.all():
|
||||
|
||||
Reference in New Issue
Block a user