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
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-05-27 15:00
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import ishtar_common.models
import re
class Migration(migrations.Migration):
dependencies = [
('ishtar_common', '0204_auto_20200514_1124'),
]
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.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.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='isbn',
field=models.CharField(blank=True, max_length=13, null=True, verbose_name='ISBN'),
),
migrations.AddField(
model_name='document',
name='issn',
field=models.CharField(blank=True, max_length=8, 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, 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, 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='sourcetype',
name='coins_genre',
field=models.CharField(blank=True, 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='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'),
),
]
|