summaryrefslogtreecommitdiff
path: root/ishtar_common/migrations/0204_auto_20201201_1533.py
blob: b1d29e44ee87e0223d8dcdbb8f80ccea75e4a36d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
# -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-12-01 15:33
from __future__ import unicode_literals

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import ishtar_common.models_common
import re


class Migration(migrations.Migration):

    dependencies = [
        ('ishtar_common', '0203_auto_20200407_1142'),
    ]

    operations = [
        migrations.CreateModel(
            name='DocumentTag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label', models.TextField(verbose_name='Label')),
                ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z', 32), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')),
                ('comment', models.TextField(blank=True, null=True, verbose_name='Comment')),
                ('available', models.BooleanField(default=True, verbose_name='Available')),
            ],
            options={
                'verbose_name': 'Document tag',
                'verbose_name_plural': 'Document tags',
                'ordering': ('label',),
            },
            bases=(ishtar_common.models_common.Cached, models.Model),
        ),
        migrations.CreateModel(
            name='Language',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label', models.TextField(verbose_name='Label')),
                ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z', 32), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')),
                ('comment', models.TextField(blank=True, null=True, verbose_name='Comment')),
                ('available', models.BooleanField(default=True, verbose_name='Available')),
                ('iso_code', models.CharField(blank=True, max_length=2, null=True, verbose_name='ISO code')),
            ],
            options={
                'verbose_name': 'Language',
                'verbose_name_plural': 'Languages',
            },
            bases=(ishtar_common.models_common.Cached, models.Model),
        ),
        migrations.AlterModelOptions(
            name='sourcetype',
            options={'ordering': ['label'], 'verbose_name': 'Document type', 'verbose_name_plural': 'Document types'},
        ),
        migrations.AddField(
            model_name='document',
            name='complete_identifier',
            field=models.TextField(blank=True, null=True, verbose_name='Complete identifier'),
        ),
        migrations.AddField(
            model_name='document',
            name='container_id',
            field=models.PositiveIntegerField(blank=True, null=True, verbose_name='Container ID'),
        ),
        migrations.AddField(
            model_name='document',
            name='container_ref_id',
            field=models.PositiveIntegerField(blank=True, null=True, verbose_name='Container ID'),
        ),
        migrations.AddField(
            model_name='document',
            name='custom_index',
            field=models.IntegerField(blank=True, null=True, verbose_name='Custom index'),
        ),
        migrations.AddField(
            model_name='document',
            name='isbn',
            field=models.CharField(blank=True, max_length=17, null=True, verbose_name='ISBN'),
        ),
        migrations.AddField(
            model_name='document',
            name='issn',
            field=models.CharField(blank=True, max_length=10, null=True, verbose_name='ISSN'),
        ),
        migrations.AddField(
            model_name='document',
            name='publisher',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='publish', to='ishtar_common.Organization', verbose_name='Publisher'),
        ),
        migrations.AddField(
            model_name='document',
            name='source',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='ishtar_common.Document', verbose_name='Source'),
        ),
        migrations.AddField(
            model_name='document',
            name='source_free_input',
            field=models.CharField(blank=True, max_length=500, null=True, verbose_name='Source - free input'),
        ),
        migrations.AddField(
            model_name='document',
            name='source_page_range',
            field=models.CharField(blank=True, max_length=500, null=True, verbose_name='Source - page range'),
        ),
        migrations.AddField(
            model_name='format',
            name='document_types',
            field=models.ManyToManyField(blank=True, help_text='Only available for these document types', related_name='formats', to='ishtar_common.SourceType'),
        ),
        migrations.AddField(
            model_name='format',
            name='iframe_template',
            field=models.TextField(blank=True, default='', help_text='Template to insert an iframe for this format. Use django template with a {{document}} variable matching the current document.', verbose_name='Iframe template'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='basefind_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage base find complete identifier.', verbose_name='Base find complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='basefind_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used to manage base find custom index. Separate keys with a semicolon.', verbose_name='Base find custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='container_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage container complete identifier.', verbose_name='Container complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='container_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used  to manage container custom index. Separate keys with a semicolon.', verbose_name='Container custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='contextrecord_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage context record complete identifier.', verbose_name='Context record complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='contextrecord_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used to manage context record custom index. Separate keys with a semicolon.', verbose_name='Context record custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='document_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage document complete identifier.', verbose_name='Document complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='document_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used to manage document custom index. Separate keys with a semicolon.', verbose_name='Document custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='file_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage archaeological file complete identifier.', verbose_name='Archaeological file complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='file_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used to manage archaeological file custom index. Separate keys with a semicolon.', verbose_name='Archaeological file custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='find_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage find complete identifier.', verbose_name='Find complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='find_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used to manage find custom index. Separate keys with a semicolon.', verbose_name='Find custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='operation_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage operation complete identifier.', verbose_name='Operation complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='operation_custom_index',
            field=models.TextField(blank=True, default='', help_text='Keys to be used to manage operation custom index. Separate keys with a semicolon.', verbose_name='Operation custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='site_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage archaeological site complete identifier.', verbose_name='Archaeological site complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='site_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used to manage archaeological site custom index. Separate keys with a semicolon.', verbose_name='Archaeological site custom index key'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='warehouse_complete_identifier',
            field=models.TextField(blank=True, default='', help_text='Formula to manage warehouse complete identifier.', verbose_name='Warehouse complete identifier'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='warehouse_custom_index',
            field=models.TextField(blank=True, default='', help_text='Key to be used to manage warehouse custom index. Separate keys with a semicolon.', verbose_name='Warehouse custom index key'),
        ),
        migrations.AddField(
            model_name='sourcetype',
            name='code',
            field=models.CharField(blank=True, default='', max_length=100, verbose_name='Code'),
        ),
        migrations.AddField(
            model_name='sourcetype',
            name='coins_genre',
            field=models.CharField(blank=True, default='', max_length=100, verbose_name='COInS export - genre'),
        ),
        migrations.AddField(
            model_name='sourcetype',
            name='coins_type',
            field=models.CharField(default='document', max_length=100, verbose_name='COInS export - type'),
        ),
        migrations.AddField(
            model_name='sourcetype',
            name='is_localized',
            field=models.BooleanField(default=False, help_text='Setting a language for this type of document is relevant', verbose_name='Is localized'),
        ),
        migrations.AddField(
            model_name='supporttype',
            name='document_types',
            field=models.ManyToManyField(blank=True, help_text='Only available for these document types', related_name='supports', to='ishtar_common.SourceType'),
        ),
        migrations.AlterField(
            model_name='document',
            name='support_type',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='ishtar_common.SupportType', verbose_name='Medium'),
        ),
        migrations.AlterField(
            model_name='import',
            name='csv_sep',
            field=models.CharField(choices=[(',', ','), (';', ';'), ('|', '|')], default=',', help_text='Separator for CSV file. Standard is comma but Microsoft Excel do not follow this standard and use semi-colon.', max_length=1, verbose_name='CSV separator'),
        ),
        migrations.AlterField(
            model_name='importercolumn',
            name='regexp_pre_filter',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='columns', to='ishtar_common.Regexp'),
        ),
        migrations.AlterField(
            model_name='importercolumn',
            name='value_format',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='columns', to='ishtar_common.ValueFormater'),
        ),
        migrations.AlterField(
            model_name='importertype',
            name='associated_models',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='importer_type_associated', to='ishtar_common.ImporterModel', verbose_name='Associated model'),
        ),
        migrations.AlterField(
            model_name='importertype',
            name='created_models',
            field=models.ManyToManyField(blank=True, help_text='Leave blank for no restrictions', related_name='importer_type_created', to='ishtar_common.ImporterModel', verbose_name='Models that can accept new items'),
        ),
        migrations.AlterField(
            model_name='importtarget',
            name='formater_type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='targets', to='ishtar_common.FormaterType'),
        ),
        migrations.AddField(
            model_name='document',
            name='language',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ishtar_common.Language', verbose_name='Language'),
        ),
        migrations.AddField(
            model_name='document',
            name='tags',
            field=models.ManyToManyField(blank=True, to='ishtar_common.DocumentTag', verbose_name='Tags'),
        ),
        migrations.AddField(
            model_name='ishtarsiteprofile',
            name='default_language',
            field=models.ForeignKey(blank=True, help_text='If set, by default the selected language will be set for localized documents.', null=True, on_delete=django.db.models.deletion.CASCADE, to='ishtar_common.Language', verbose_name='Default language for documentation'),
        ),
    ]