Files
mayan-edms/mayan/apps/documents/migrations/0035_auto_20161102_0633.py
Roberto Rosario c0194c63dc Refactor document page image generation and transformation classes
to cache all transformed versions of a document page.
2016-11-02 02:34:57 -04:00

43 lines
1.4 KiB
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documents', '0034_auto_20160509_2321'),
]
operations = [
migrations.CreateModel(
name='DocumentPageCachedImage',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('filename', models.CharField(max_length=128, verbose_name='Filename')),
],
options={
'verbose_name': 'Document page cached image',
'verbose_name_plural': 'Document page cached images',
},
),
migrations.CreateModel(
name='DocumentPageResult',
fields=[
],
options={
'ordering': ('document_version__document', 'page_number'),
'verbose_name': 'Document page',
'proxy': True,
'verbose_name_plural': 'Document pages',
},
bases=('documents.documentpage',),
),
migrations.AddField(
model_name='documentpagecachedimage',
name='document_page',
field=models.ForeignKey(related_name='cached_images', verbose_name='Document page', to='documents.DocumentPage'),
),
]