0001_initial.py 7.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
from django.db import models, migrations
import vertimus.models


class Migration(migrations.Migration):

    dependencies = [
        ('stats', '__first__'),
        ('people', '__first__'),
        ('languages', '__first__'),
    ]

    operations = [
        migrations.CreateModel(
            name='Action',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.SlugField(max_length=8)),
                ('created', models.DateTimeField(editable=False)),
                ('comment', models.TextField(null=True, blank=True)),
                ('file', models.FileField(null=True, upload_to=vertimus.models.generate_upload_filename, blank=True)),
22 23
                ('merged_file', models.OneToOneField(null=True, blank=True, to='stats.PoFile', on_delete=models.SET_NULL)),
                ('person', models.ForeignKey(to='people.Person', on_delete=models.CASCADE)),
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
            ],
            options={
                'db_table': 'action',
                'verbose_name': 'action',
            },
        ),
        migrations.CreateModel(
            name='ActionArchived',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.SlugField(max_length=8)),
                ('created', models.DateTimeField(editable=False)),
                ('comment', models.TextField(null=True, blank=True)),
                ('file', models.FileField(null=True, upload_to=vertimus.models.generate_upload_filename, blank=True)),
                ('sequence', models.IntegerField(null=True)),
39 40
                ('merged_file', models.OneToOneField(null=True, blank=True, to='stats.PoFile', on_delete=models.SET_NULL)),
                ('person', models.ForeignKey(to='people.Person', on_delete=models.CASCADE)),
41 42 43 44 45 46 47 48 49 50 51
            ],
            options={
                'db_table': 'action_archived',
            },
        ),
        migrations.CreateModel(
            name='State',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.SlugField(default='None', max_length=20)),
                ('updated', models.DateTimeField(auto_now=True)),
52 53 54 55
                ('branch', models.ForeignKey(to='stats.Branch', on_delete=models.CASCADE)),
                ('domain', models.ForeignKey(to='stats.Domain', on_delete=models.CASCADE)),
                ('language', models.ForeignKey(to='languages.Language', on_delete=models.CASCADE)),
                ('person', models.ForeignKey(default=None, to='people.Person', null=True, on_delete=models.SET_NULL)),
56 57 58 59 60 61 62 63 64
            ],
            options={
                'db_table': 'state',
                'verbose_name': 'state',
            },
        ),
        migrations.AddField(
            model_name='actionarchived',
            name='state_db',
65
            field=models.ForeignKey(to='vertimus.State', on_delete=models.CASCADE),
66 67 68 69
        ),
        migrations.AddField(
            model_name='action',
            name='state_db',
70
            field=models.ForeignKey(to='vertimus.State', on_delete=models.CASCADE),
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
        ),
        migrations.CreateModel(
            name='ActionAA',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionCI',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionIC',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionRC',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionRP',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionRT',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionTC',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionTR',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionUNDO',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionUP',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionUT',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='ActionWC',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.action',),
        ),
        migrations.CreateModel(
            name='StateCommitted',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateCommitting',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateNone',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateProofread',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateProofreading',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateToCommit',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateToReview',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateTranslated',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.CreateModel(
            name='StateTranslating',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('vertimus.state',),
        ),
        migrations.AlterUniqueTogether(
            name='state',
            unique_together=set([('branch', 'domain', 'language')]),
        ),
    ]