Documents, Mailer: Sort imports, minor style fix
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.conf import settings
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
from django.db import migrations, models
|
||||
|
||||
import mayan.apps.documents.models
|
||||
|
||||
@@ -18,8 +17,8 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='uuid',
|
||||
field=models.CharField(
|
||||
default=mayan.apps.documents.models.UUID_FUNCTION, max_length=48,
|
||||
editable=False
|
||||
default=mayan.apps.documents.models.UUID_FUNCTION,
|
||||
editable=False, max_length=48,
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -27,8 +26,8 @@ class Migration(migrations.Migration):
|
||||
model_name='documentversion',
|
||||
name='file',
|
||||
field=models.FileField(
|
||||
upload_to=mayan.apps.documents.models.UUID_FUNCTION,
|
||||
storage=FileSystemStorage(),
|
||||
upload_to=mayan.apps.documents.models.UUID_FUNCTION,
|
||||
verbose_name='File'
|
||||
),
|
||||
preserve_default=True,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
@@ -12,8 +11,7 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='documentpage',
|
||||
model_name='documentpage', new_name='content_old',
|
||||
old_name='content',
|
||||
new_name='content_old',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
@@ -13,7 +12,6 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='documentpage',
|
||||
name='content_old',
|
||||
model_name='documentpage', name='content_old',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
@@ -12,7 +11,6 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='documentpage',
|
||||
name='page_label',
|
||||
model_name='documentpage', name='page_label',
|
||||
),
|
||||
]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='in_trash',
|
||||
field=models.BooleanField(
|
||||
default=False, verbose_name='In trash?', editable=False
|
||||
default=False, editable=False, verbose_name='In trash?'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import datetime
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.utils.timezone import utc
|
||||
|
||||
|
||||
@@ -15,8 +15,7 @@ class Migration(migrations.Migration):
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='DeletedDocument',
|
||||
fields=[
|
||||
],
|
||||
fields=[],
|
||||
options={
|
||||
'proxy': True,
|
||||
},
|
||||
@@ -26,9 +25,9 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='deleted_date_time',
|
||||
field=models.DateTimeField(
|
||||
default=datetime.datetime(
|
||||
blank=True, default=datetime.datetime(
|
||||
2015, 7, 4, 0, 54, 7, 910642, tzinfo=utc
|
||||
), verbose_name='Date and time deleted', blank=True
|
||||
), verbose_name='Date and time deleted',
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -23,11 +22,11 @@ class Migration(migrations.Migration):
|
||||
model_name='documenttype',
|
||||
name='delete_time_unit',
|
||||
field=models.CharField(
|
||||
default='days', max_length=8, verbose_name='Delete time unit',
|
||||
choices=[
|
||||
('days', 'Days'), ('hours', 'Hours'),
|
||||
('minutes', 'Minutes'), ('seconds', 'Seconds')
|
||||
]
|
||||
],
|
||||
default='days', max_length=8, verbose_name='Delete time unit'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -35,7 +34,7 @@ class Migration(migrations.Migration):
|
||||
model_name='documenttype',
|
||||
name='trash_time_period',
|
||||
field=models.PositiveIntegerField(
|
||||
null=True, verbose_name='Trash time period', blank=True
|
||||
blank=True, null=True, verbose_name='Trash time period'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -43,20 +42,17 @@ class Migration(migrations.Migration):
|
||||
model_name='documenttype',
|
||||
name='trash_time_unit',
|
||||
field=models.CharField(
|
||||
blank=True, max_length=8, null=True,
|
||||
verbose_name='Trash time unit', choices=[
|
||||
blank=True, choices=[
|
||||
('days', 'Days'), ('hours', 'Hours'),
|
||||
('minutes', 'Minutes'), ('seconds', 'Seconds')
|
||||
]
|
||||
], max_length=8, null=True, verbose_name='Trash time unit'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='deleted_date_time',
|
||||
field=models.DateTimeField(
|
||||
verbose_name='Date and time trashed', blank=True
|
||||
),
|
||||
), model_name='document', name='deleted_date_time',
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -12,55 +11,48 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='deleted_date_time',
|
||||
field=models.DateTimeField(
|
||||
null=True, verbose_name='Date and time trashed', blank=True
|
||||
blank=True, null=True, verbose_name='Date and time trashed'
|
||||
),
|
||||
model_name='document', name='deleted_date_time',
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documenttype',
|
||||
name='delete_time_period',
|
||||
field=models.PositiveIntegerField(
|
||||
default=30, help_text='Amount of time after which documents '
|
||||
'of this type in the trash will be deleted.',
|
||||
verbose_name='Delete time period'
|
||||
),
|
||||
model_name='documenttype', name='delete_time_period',
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documenttype',
|
||||
name='delete_time_unit',
|
||||
field=models.CharField(
|
||||
default='days', max_length=8, verbose_name='Delete time unit',
|
||||
choices=[
|
||||
('days', 'Days'), ('hours', 'Hours'),
|
||||
('minutes', 'Minutes')
|
||||
]
|
||||
], default='days', max_length=8,
|
||||
verbose_name='Delete time unit'
|
||||
),
|
||||
model_name='documenttype', name='delete_time_unit',
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documenttype',
|
||||
name='trash_time_period',
|
||||
field=models.PositiveIntegerField(
|
||||
help_text='Amount of time after which documents of this type '
|
||||
'will be moved to the trash.', null=True,
|
||||
verbose_name='Trash time period', blank=True
|
||||
),
|
||||
blank=True, help_text='Amount of time after which documents '
|
||||
'of this type will be moved to the trash.', null=True,
|
||||
verbose_name='Trash time period'
|
||||
), model_name='documenttype', name='trash_time_period',
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documenttype',
|
||||
name='trash_time_unit',
|
||||
field=models.CharField(
|
||||
blank=True, max_length=8, null=True,
|
||||
verbose_name='Trash time unit', choices=[
|
||||
blank=True, choices=[
|
||||
('days', 'Days'), ('hours', 'Hours'),
|
||||
('minutes', 'Minutes')
|
||||
]
|
||||
], max_length=8, null=True, verbose_name='Trash time unit'
|
||||
),
|
||||
preserve_default=True,
|
||||
model_name='documenttype', name='trash_time_unit',
|
||||
preserve_default=True
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
def make_existing_documents_not_stubs(apps, schema_editor):
|
||||
def operation_make_existing_documents_not_stubs(apps, schema_editor):
|
||||
Document = apps.get_model('documents', 'Document')
|
||||
|
||||
for document in Document.objects.using(schema_editor.connection.alias).all():
|
||||
@@ -23,9 +22,9 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='is_stub',
|
||||
field=models.BooleanField(
|
||||
default=True, verbose_name='Is stub?', editable=False
|
||||
default=True, editable=False, verbose_name='Is stub?'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.RunPython(make_existing_documents_not_stubs),
|
||||
migrations.RunPython(code=operation_make_existing_documents_not_stubs),
|
||||
]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
@@ -20,7 +19,7 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='documenttype',
|
||||
old_name='name',
|
||||
new_name='label',
|
||||
old_name='name'
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='documenttype',
|
||||
name='label',
|
||||
field=models.CharField(
|
||||
unique=True, max_length=32, verbose_name='Label'
|
||||
max_length=32, unique=True, verbose_name='Label'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='description',
|
||||
field=models.TextField(
|
||||
default='', verbose_name='Description', blank=True
|
||||
blank=True, default='', verbose_name='Description'
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='date_added',
|
||||
field=models.DateTimeField(
|
||||
auto_now_add=True, verbose_name='Added', db_index=True
|
||||
auto_now_add=True, db_index=True, verbose_name='Added'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -23,7 +22,7 @@ class Migration(migrations.Migration):
|
||||
model_name='documentversion',
|
||||
name='timestamp',
|
||||
field=models.DateTimeField(
|
||||
auto_now_add=True, verbose_name='Timestamp', db_index=True
|
||||
auto_now_add=True, db_index=True, verbose_name='Timestamp'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='description',
|
||||
field=models.TextField(
|
||||
default='', verbose_name='Description', blank=True
|
||||
blank=True, default='', verbose_name='Description'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -23,9 +22,9 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='label',
|
||||
field=models.CharField(
|
||||
default='', max_length=255, blank=True,
|
||||
help_text='The name of the document', verbose_name='Label',
|
||||
db_index=True
|
||||
blank=True, default='', db_index=True,
|
||||
help_text='The name of the document', max_length=255,
|
||||
verbose_name='Label'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -33,7 +32,7 @@ class Migration(migrations.Migration):
|
||||
model_name='documentversion',
|
||||
name='comment',
|
||||
field=models.TextField(
|
||||
default='', verbose_name='Comment', blank=True
|
||||
blank=True, default='', verbose_name='Comment'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='description',
|
||||
field=models.TextField(
|
||||
default='', null=True, verbose_name='Description', blank=True
|
||||
blank=True, default='', null=True, verbose_name='Description'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -23,9 +22,9 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='label',
|
||||
field=models.CharField(
|
||||
default='', max_length=255, blank=True,
|
||||
help_text='The name of the document', null=True,
|
||||
verbose_name='Label', db_index=True
|
||||
blank=True, db_index=True, default='',
|
||||
help_text='The name of the document', max_length=255,
|
||||
null=True, verbose_name='Label'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
@@ -33,7 +32,7 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='language',
|
||||
field=models.CharField(
|
||||
default='eng', choices=[
|
||||
blank=True, choices=[
|
||||
['aar', 'Afar'],
|
||||
['abk', 'Abkhazian'],
|
||||
['ace', 'Achinese'],
|
||||
@@ -539,9 +538,8 @@ class Migration(migrations.Migration):
|
||||
['zun', 'Zuni'],
|
||||
['zxx', 'No linguistic content; Not applicable'],
|
||||
['zza', 'Zaza; Dimili; Dimli; Kirdki; Kirmanjki; Zazaki']
|
||||
], max_length=8, blank=True, null=True,
|
||||
], default='eng', max_length=8, null=True,
|
||||
verbose_name='Language'
|
||||
),
|
||||
preserve_default=True,
|
||||
), preserve_default=True,
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='documentversion',
|
||||
name='comment',
|
||||
field=models.TextField(
|
||||
default='', null=True, verbose_name='Comment', blank=True
|
||||
blank=True, default='', null=True, verbose_name='Comment'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='description',
|
||||
field=models.TextField(
|
||||
default='', verbose_name='Description', blank=True
|
||||
blank=True, default='', verbose_name='Description'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,7 @@ class Migration(migrations.Migration):
|
||||
model_name='documentversion',
|
||||
name='comment',
|
||||
field=models.TextField(
|
||||
default='', verbose_name='Comment', blank=True
|
||||
blank=True, default='', verbose_name='Comment'
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pycountry
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
import pycountry
|
||||
|
||||
def change_bibliographic_to_terminology(apps, schema_editor):
|
||||
|
||||
def operation_change_bibliographic_to_terminology(apps, schema_editor):
|
||||
Document = apps.get_model('documents', 'Document')
|
||||
|
||||
for document in Document.objects.using(schema_editor.connection.alias).all():
|
||||
@@ -31,5 +30,7 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(change_bibliographic_to_terminology),
|
||||
migrations.RunPython(
|
||||
code=operation_change_bibliographic_to_terminology
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -15,7 +14,6 @@ class Migration(migrations.Migration):
|
||||
model_name='document',
|
||||
name='language',
|
||||
field=models.CharField(
|
||||
default='eng', max_length=8, verbose_name='Language',
|
||||
blank=True, choices=[
|
||||
['aar', 'Afar'], ['abk', 'Abkhazian'],
|
||||
['ace', 'Achinese'], ['ach', 'Acoli'],
|
||||
@@ -325,7 +323,7 @@ class Migration(migrations.Migration):
|
||||
['zul', 'Zulu'], ['zun', 'Zuni'],
|
||||
['zxx', 'No linguistic content; Not applicable'],
|
||||
['zza', 'Zaza; Dimili; Dimli; Kirdki; Kirmanjki; Zazaki']
|
||||
]
|
||||
], default='eng', max_length=8, verbose_name='Language',
|
||||
),
|
||||
preserve_default=True,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -20,22 +19,18 @@ class Migration(migrations.Migration):
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='is_stub',
|
||||
field=models.BooleanField(
|
||||
default=True, help_text='A document stub is a document with '
|
||||
'an entry on the database but no file uploaded. This could '
|
||||
'be an interrupted upload or a deferred upload via the API.',
|
||||
verbose_name='Is stub?', editable=False
|
||||
),
|
||||
preserve_default=True,
|
||||
default=True, editable=False, help_text='A document stub is '
|
||||
'a document with an entry on the database but no file '
|
||||
'uploaded. This could be an interrupted upload or a '
|
||||
'deferred upload via the API.',
|
||||
verbose_name='Is stub?'
|
||||
), model_name='document', name='is_stub', preserve_default=True
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documenttypefilename',
|
||||
name='filename',
|
||||
field=models.CharField(
|
||||
max_length=128, verbose_name='Label', db_index=True
|
||||
),
|
||||
preserve_default=True,
|
||||
db_index=True, max_length=128, verbose_name='Label'
|
||||
), model_name='documenttypefilename', name='filename',
|
||||
preserve_default=True
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -12,24 +11,21 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='NewVersionBlock',
|
||||
fields=[
|
||||
bases=(models.Model,), fields=[
|
||||
(
|
||||
'id', models.AutoField(
|
||||
verbose_name='ID', serialize=False, auto_created=True,
|
||||
primary_key=True
|
||||
auto_created=True, primary_key=True, serialize=False,
|
||||
verbose_name='ID'
|
||||
)
|
||||
),
|
||||
(
|
||||
'document', models.ForeignKey(
|
||||
verbose_name='Document', to='documents.Document'
|
||||
to='documents.Document', verbose_name='Document'
|
||||
)
|
||||
),
|
||||
],
|
||||
options={
|
||||
], name='NewVersionBlock', options={
|
||||
'verbose_name': 'New version block',
|
||||
'verbose_name_plural': 'New version blocks',
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -15,19 +14,19 @@ class Migration(migrations.Migration):
|
||||
model_name='documenttype',
|
||||
name='delete_time_period',
|
||||
field=models.PositiveIntegerField(
|
||||
default=30, help_text='Amount of time after which documents '
|
||||
'of this type in the trash will be deleted.', null=True,
|
||||
verbose_name='Delete time period', blank=True
|
||||
blank=True, default=30, help_text='Amount of time after '
|
||||
'which documents of this type in the trash will be deleted.',
|
||||
null=True, verbose_name='Delete time period'
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documenttype',
|
||||
name='delete_time_unit',
|
||||
field=models.CharField(
|
||||
default='days', choices=[
|
||||
blank=True, default='days', choices=[
|
||||
('days', 'Days'), ('hours', 'Hours'),
|
||||
('minutes', 'Minutes')
|
||||
], max_length=8, blank=True, null=True,
|
||||
], max_length=8, null=True,
|
||||
verbose_name='Delete time unit'
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import uuid
|
||||
@@ -6,7 +5,7 @@ import uuid
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def convert_uuid_to_hex(apps, schema_editor):
|
||||
def operation_convert_uuid_to_hex(apps, schema_editor):
|
||||
Document = apps.get_model('documents', 'Document')
|
||||
|
||||
for document in Document.objects.using(schema_editor.connection.alias).all():
|
||||
@@ -21,5 +20,5 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(convert_uuid_to_hex),
|
||||
migrations.RunPython(code=operation_convert_uuid_to_hex),
|
||||
]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import uuid
|
||||
@@ -6,14 +5,13 @@ import uuid
|
||||
from django.db import connection, migrations, models
|
||||
|
||||
|
||||
def forwards(apps, schema_editor):
|
||||
def operation_forwards(apps, schema_editor):
|
||||
if not schema_editor.connection.vendor == 'oracle':
|
||||
# Skip this migration for Oracle
|
||||
# GitHub issue #251
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='uuid',
|
||||
field=models.UUIDField(default=uuid.uuid4, editable=False),
|
||||
model_name='document', name='uuid',
|
||||
)
|
||||
|
||||
|
||||
@@ -23,7 +21,7 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(forwards)
|
||||
migrations.RunPython(code=operation_forwards)
|
||||
]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
@@ -32,6 +30,7 @@ class Migration(migrations.Migration):
|
||||
if connection.vendor == 'postgresql':
|
||||
self.operations.insert(
|
||||
0, migrations.RunSQL(
|
||||
'ALTER TABLE documents_document ALTER COLUMN uuid SET DATA TYPE UUID USING uuid::uuid;'
|
||||
'ALTER TABLE documents_document ALTER COLUMN uuid SET '
|
||||
'DATA TYPE UUID USING uuid::uuid;'
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -12,13 +11,20 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='in_trash',
|
||||
field=models.BooleanField(default=False, verbose_name='In trash?', db_index=True, editable=False),
|
||||
field=models.BooleanField(
|
||||
db_index=True, default=False, editable=False,
|
||||
verbose_name='In trash?'
|
||||
),
|
||||
model_name='document', name='in_trash',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='is_stub',
|
||||
field=models.BooleanField(default=True, editable=False, help_text='A document stub is a document with an entry on the database but no file uploaded. This could be an interrupted upload or a deferred upload via the API.', verbose_name='Is stub?', db_index=True),
|
||||
field=models.BooleanField(
|
||||
default=True, db_index=True, editable=False,
|
||||
help_text='A document stub is a document with an entry on '
|
||||
'the database but no file uploaded. This could be an '
|
||||
'interrupted upload or a deferred upload via the API.',
|
||||
verbose_name='Is stub?'
|
||||
),
|
||||
model_name='document', name='is_stub',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -12,31 +11,36 @@ class Migration(migrations.Migration):
|
||||
|
||||
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={
|
||||
(
|
||||
'id', models.AutoField(
|
||||
auto_created=True, primary_key=True, serialize=False,
|
||||
verbose_name='ID',
|
||||
)
|
||||
),
|
||||
(
|
||||
'filename', models.CharField(
|
||||
max_length=128, verbose_name='Filename'
|
||||
)
|
||||
),
|
||||
], name='DocumentPageCachedImage', options={
|
||||
'verbose_name': 'Document page cached image',
|
||||
'verbose_name_plural': 'Document page cached images',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='DocumentPageResult',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
bases=('documents.documentpage',), fields=[],
|
||||
name='DocumentPageResult', options={
|
||||
'ordering': ('document_version__document', 'page_number'),
|
||||
'verbose_name': 'Document page',
|
||||
'proxy': True,
|
||||
'proxy': True, 'verbose_name': 'Document page',
|
||||
'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'),
|
||||
field=models.ForeignKey(
|
||||
related_name='cached_images', to='documents.DocumentPage',
|
||||
verbose_name='Document page'
|
||||
),
|
||||
model_name='documentpagecachedimage', name='document_page',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.11 on 2016-12-22 05:34
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
@@ -13,8 +11,7 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='newversionblock',
|
||||
name='document',
|
||||
model_name='newversionblock', name='document',
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='NewVersionBlock',
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.4 on 2016-12-31 06:17
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -13,8 +11,9 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='language',
|
||||
field=models.CharField(blank=True, default='eng', max_length=8, verbose_name='Language'),
|
||||
field=models.CharField(
|
||||
blank=True, default='eng', max_length=8,
|
||||
verbose_name='Language'
|
||||
), model_name='document', name='language',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-07-05 20:08
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -13,11 +11,9 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='checksum',
|
||||
field=models.CharField(
|
||||
blank=True, db_index=True, editable=False, max_length=64,
|
||||
null=True, verbose_name='Checksum'
|
||||
),
|
||||
), model_name='documentversion', name='checksum',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-07-06 03:30
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -14,7 +12,6 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='DuplicatedDocument',
|
||||
fields=[
|
||||
(
|
||||
'id', models.AutoField(
|
||||
@@ -41,8 +38,7 @@ class Migration(migrations.Migration):
|
||||
verbose_name='Duplicated documents'
|
||||
)
|
||||
),
|
||||
],
|
||||
options={
|
||||
], name='DuplicatedDocument', options={
|
||||
'verbose_name': 'Duplicated document',
|
||||
'verbose_name_plural': 'Duplicated documents',
|
||||
},
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-07-25 11:11
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
@@ -14,6 +12,9 @@ class Migration(migrations.Migration):
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='documentversion',
|
||||
options={'ordering': ('timestamp',), 'verbose_name': 'Document version', 'verbose_name_plural': 'Document version'},
|
||||
options={
|
||||
'ordering': ('timestamp',), 'verbose_name': 'Document version',
|
||||
'verbose_name_plural': 'Document version'
|
||||
},
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-08-23 18:55
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import uuid
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
@@ -14,8 +13,7 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='uuid',
|
||||
field=models.UUIDField(default=uuid.uuid4, editable=False),
|
||||
model_name='document', name='uuid',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-04-03 07:02
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import django.core.files.storage
|
||||
@@ -16,8 +14,12 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='file',
|
||||
field=models.FileField(storage=django.core.files.storage.FileSystemStorage(location=b'mayan/media/document_storage'), upload_to=mayan.apps.documents.models.UUID_FUNCTION, verbose_name='File'),
|
||||
field=models.FileField(
|
||||
storage=django.core.files.storage.FileSystemStorage(
|
||||
location=b'mayan/media/document_storage'
|
||||
), upload_to=mayan.apps.documents.models.UUID_FUNCTION,
|
||||
verbose_name='File'
|
||||
),
|
||||
model_name='documentversion', name='file',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-04-29 07:59
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import django.core.files.storage
|
||||
@@ -16,18 +14,26 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='encoding',
|
||||
field=models.CharField(blank=True, editable=False, max_length=64, null=True, verbose_name='Encoding'),
|
||||
field=models.CharField(
|
||||
blank=True, editable=False, max_length=64, null=True,
|
||||
verbose_name='Encoding'
|
||||
),
|
||||
model_name='documentversion', name='encoding',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='file',
|
||||
field=models.FileField(storage=django.core.files.storage.FileSystemStorage(location=b'/home/rosarior/development/mayan-edms/mayan/media/document_storage'), upload_to=mayan.apps.documents.models.UUID_FUNCTION, verbose_name='File'),
|
||||
field=models.FileField(
|
||||
storage=django.core.files.storage.FileSystemStorage(
|
||||
location=b'/home/rosarior/development/mayan-edms/mayan/media/document_storage'
|
||||
), upload_to=mayan.apps.documents.models.UUID_FUNCTION,
|
||||
verbose_name='File'
|
||||
),
|
||||
model_name='documentversion', name='file',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='mimetype',
|
||||
field=models.CharField(blank=True, editable=False, max_length=255, null=True, verbose_name='MIME type'),
|
||||
field=models.CharField(
|
||||
blank=True, editable=False, max_length=255, null=True,
|
||||
verbose_name='MIME type'
|
||||
),
|
||||
model_name='documentversion', name='mimetype',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-08-23 04:52
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -16,32 +14,41 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='FavoriteDocument',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
],
|
||||
options={
|
||||
('id', models.AutoField(
|
||||
auto_created=True, primary_key=True, serialize=False,
|
||||
verbose_name='ID'
|
||||
)
|
||||
),
|
||||
], name='FavoriteDocument', options={
|
||||
'verbose_name': 'Favorite document',
|
||||
'verbose_name_plural': 'Favorite documents',
|
||||
},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='document',
|
||||
options={'ordering': ('label',), 'verbose_name': 'Document', 'verbose_name_plural': 'Documents'},
|
||||
name='document', options={
|
||||
'ordering': ('label',), 'verbose_name': 'Document',
|
||||
'verbose_name_plural': 'Documents'
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='recentdocument',
|
||||
name='document',
|
||||
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='recent', to='documents.Document', verbose_name='Document'),
|
||||
field=models.ForeignKey(
|
||||
editable=False, on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name='recent', to='documents.Document',
|
||||
verbose_name='Document'
|
||||
), model_name='recentdocument', name='document',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='favoritedocument',
|
||||
name='document',
|
||||
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='favorites', to='documents.Document', verbose_name='Document'),
|
||||
field=models.ForeignKey(
|
||||
editable=False, on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name='favorites', to='documents.Document',
|
||||
verbose_name='Document'
|
||||
), model_name='favoritedocument', name='document',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='favoritedocument',
|
||||
name='user',
|
||||
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='User'),
|
||||
field=models.ForeignKey(
|
||||
editable=False, on_delete=django.db.models.deletion.CASCADE,
|
||||
to=settings.AUTH_USER_MODEL, verbose_name='User'
|
||||
), model_name='favoritedocument', name='user',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-09-17 06:45
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import uuid
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
@@ -14,68 +13,97 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='date_added',
|
||||
field=models.DateTimeField(auto_now_add=True, db_index=True, help_text='The server date and time when the document was finally processed and added to the system.', verbose_name='Added'),
|
||||
field=models.DateTimeField(
|
||||
auto_now_add=True, db_index=True,
|
||||
help_text='The server date and time when the document was '
|
||||
'finally processed and added to the system.',
|
||||
verbose_name='Added'
|
||||
), model_name='document', name='date_added',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='deleted_date_time',
|
||||
field=models.DateTimeField(blank=True, help_text='The server date and time when the document was moved to the trash.', null=True, verbose_name='Date and time trashed'),
|
||||
field=models.DateTimeField(
|
||||
blank=True, help_text='The server date and time when the '
|
||||
'document was moved to the trash.', null=True,
|
||||
verbose_name='Date and time trashed'
|
||||
), model_name='document', name='deleted_date_time',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='description',
|
||||
field=models.TextField(blank=True, default='', help_text='An optional short text describing a document.', verbose_name='Description'),
|
||||
field=models.TextField(
|
||||
blank=True, default='', help_text='An optional short text '
|
||||
'describing a document.', verbose_name='Description'
|
||||
), model_name='document', name='description',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='in_trash',
|
||||
field=models.BooleanField(db_index=True, default=False, editable=False, help_text='Whether or not this document is in the trash.', verbose_name='In trash?'),
|
||||
field=models.BooleanField(
|
||||
db_index=True, default=False, editable=False,
|
||||
help_text='Whether or not this document is in the trash.',
|
||||
verbose_name='In trash?'
|
||||
), model_name='document', name='in_trash',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='label',
|
||||
field=models.CharField(blank=True, db_index=True, default='', help_text='The name of the document.', max_length=255, verbose_name='Label'),
|
||||
field=models.CharField(
|
||||
blank=True, db_index=True, default='',
|
||||
help_text='The name of the document.', max_length=255,
|
||||
verbose_name='Label'
|
||||
), model_name='document', name='label',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='language',
|
||||
field=models.CharField(blank=True, default=b'eng', help_text='The dominant language in the document.', max_length=8, verbose_name='Language'),
|
||||
field=models.CharField(
|
||||
blank=True, default=b'eng', help_text='The dominant '
|
||||
'language in the document.', max_length=8,
|
||||
verbose_name='Language'
|
||||
), model_name='document', name='language',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='document',
|
||||
name='uuid',
|
||||
field=models.UUIDField(default=uuid.uuid4, editable=False, help_text='UUID of a document, universally Unique ID. An unique identifiergenerated for each document.', verbose_name='UUID'),
|
||||
field=models.UUIDField(
|
||||
default=uuid.uuid4, editable=False, help_text='UUID of a '
|
||||
'document, universally Unique ID. An unique identifier '
|
||||
'generated for each document.', verbose_name='UUID'
|
||||
), model_name='document', name='uuid',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documenttype',
|
||||
name='label',
|
||||
field=models.CharField(help_text='The name of the document type.', max_length=32, unique=True, verbose_name='Label'),
|
||||
field=models.CharField(
|
||||
help_text='The name of the document type.', max_length=32,
|
||||
unique=True, verbose_name='Label'
|
||||
), model_name='documenttype', name='label',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='checksum',
|
||||
field=models.CharField(blank=True, db_index=True, editable=False, help_text="A hash/checkdigit/fingerprint generated from the document's binary data. Only identical documents will have the same checksum.", max_length=64, null=True, verbose_name='Checksum'),
|
||||
field=models.CharField(
|
||||
blank=True, db_index=True, editable=False,
|
||||
help_text='A hash/checkdigit/fingerprint generated from the '
|
||||
'document\'s binary data. Only identical documents will have '
|
||||
'the same checksum.', max_length=64, null=True,
|
||||
verbose_name='Checksum'
|
||||
), model_name='documentversion', name='checksum',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='comment',
|
||||
field=models.TextField(blank=True, default='', help_text='An optional short text describing the document version.', verbose_name='Comment'),
|
||||
field=models.TextField(
|
||||
blank=True, default='', help_text='An optional short text '
|
||||
'describing the document version.', verbose_name='Comment'
|
||||
), model_name='documentversion', name='comment',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='encoding',
|
||||
field=models.CharField(blank=True, editable=False, help_text='The document version file encoding. binary 7-bit, binary 8-bit, text, base64, etc.', max_length=64, null=True, verbose_name='Encoding'),
|
||||
field=models.CharField(
|
||||
blank=True, editable=False, help_text='The document version '
|
||||
'file encoding. binary 7-bit, binary 8-bit, text, base64, '
|
||||
'etc.', max_length=64, null=True, verbose_name='Encoding'
|
||||
), model_name='documentversion', name='encoding',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='mimetype',
|
||||
field=models.CharField(blank=True, editable=False, help_text='The document version\'s file mimetype. MIME types are a standard way to describe the format of a file, in this case the file format of the document. Some examples: "text/plain" or "image/jpeg". ', max_length=255, null=True, verbose_name='MIME type'),
|
||||
field=models.CharField(
|
||||
blank=True, editable=False, help_text='The document '
|
||||
'version\'s file mimetype. MIME types are a standard way '
|
||||
'to describe the format of a file, in this case the file '
|
||||
'format of the document. Some examples: "text/plain" or '
|
||||
'"image/jpeg". ', max_length=255, null=True,
|
||||
verbose_name='MIME type'
|
||||
), model_name='documentversion', name='mimetype',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='documentversion',
|
||||
name='timestamp',
|
||||
field=models.DateTimeField(auto_now_add=True, db_index=True, help_text='The server date and time when the document version was processed.', verbose_name='Timestamp'),
|
||||
field=models.DateTimeField(
|
||||
auto_now_add=True, db_index=True, help_text='The server '
|
||||
'date and time when the document version was processed.',
|
||||
verbose_name='Timestamp'
|
||||
), model_name='documentversion', name='timestamp',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-09-17 07:13
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -13,8 +11,9 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='documenttype',
|
||||
name='label',
|
||||
field=models.CharField(help_text='The name of the document type.', max_length=96, unique=True, verbose_name='Label'),
|
||||
field=models.CharField(
|
||||
help_text='The name of the document type.', max_length=96,
|
||||
unique=True, verbose_name='Label'
|
||||
), model_name='documenttype', name='label',
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-09-17 07:37
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -14,14 +12,15 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='documentpagecachedimage',
|
||||
name='datetime',
|
||||
field=models.DateTimeField(auto_now_add=True, db_index=True, default=django.utils.timezone.now, verbose_name='Date time'),
|
||||
field=models.DateTimeField(
|
||||
auto_now_add=True, db_index=True,
|
||||
default=django.utils.timezone.now, verbose_name='Date time'
|
||||
), model_name='documentpagecachedimage', name='datetime',
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='documentpagecachedimage',
|
||||
name='file_size',
|
||||
field=models.PositiveIntegerField(db_index=True, default=0, verbose_name='File size'),
|
||||
field=models.PositiveIntegerField(
|
||||
db_index=True, default=0, verbose_name='File size'
|
||||
), model_name='documentpagecachedimage', name='file_size',
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user