34 lines
1.6 KiB
Python
34 lines
1.6 KiB
Python
# Generated by Django 2.1.4 on 2018-12-20 17:05
|
|
|
|
import django.core.validators
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('bff', '0005_bannerchange_hide_after'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='MapImage',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
('modified', models.DateTimeField(auto_now=True)),
|
|
('resource_uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
|
|
('reminder_alias', models.CharField(default='', help_text='All characters must be alphanumerical or underline, except by the first character, which must not be alphanumerical.', max_length=255, unique=True, validators=[django.core.validators.RegexValidator('^[A-Za-z_][A-Za-z0-9_]*$')])),
|
|
('ordering', models.IntegerField(default=0)),
|
|
('convention', models.ForeignKey(default=None, on_delete=django.db.models.deletion.PROTECT, related_name='maps', to='bff.ConventionSeries')),
|
|
('image', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='bff.LanguageImage')),
|
|
('name', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='bff.LanguagePhrase')),
|
|
],
|
|
options={
|
|
'ordering': ('convention__ceremony_opening_time', 'ordering', '-pk'),
|
|
},
|
|
),
|
|
]
|