Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add migrations in eoaauthors
  • Loading branch information
kthoden committed Sep 8, 2020
1 parent 522ce2b commit 41deb3a
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/eoaauthors2/migrations/0001_initial.py
@@ -0,0 +1,48 @@
# Generated by Django 2.1.5 on 2020-08-14 14:24

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
('cms', '0022_auto_20180620_1551'),
]

operations = [
migrations.CreateModel(
name='Author',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, unique=True)),
('description', models.CharField(max_length=1000)),
],
options={
'verbose_name_plural': 'Authors',
},
),
migrations.CreateModel(
name='EOAAuthorListModel',
fields=[
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='eoaauthors2_eoaauthorlistmodel', serialize=False, to='cms.CMSPlugin')),
],
options={
'abstract': False,
},
bases=('cms.cmsplugin',),
),
migrations.CreateModel(
name='EOAAuthorModel',
fields=[
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='eoaauthors2_eoaauthormodel', serialize=False, to='cms.CMSPlugin')),
('series', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='eoaauthors2.Author')),
],
options={
'abstract': False,
},
bases=('cms.cmsplugin',),
),
]
51 changes: 51 additions & 0 deletions src/eoaauthors2/migrations/0002_auto_20200814_1433.py
@@ -0,0 +1,51 @@
# Generated by Django 2.1.5 on 2020-08-14 14:33

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('eoaauthors2', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='author',
name='description',
),
migrations.RemoveField(
model_name='author',
name='name',
),
migrations.AddField(
model_name='author',
name='authorfirstname',
field=models.CharField(max_length=2000, null=True),
),
migrations.AddField(
model_name='author',
name='authorlastname',
field=models.CharField(max_length=2000, null=True),
),
migrations.AddField(
model_name='author',
name='biography',
field=models.TextField(null=True),
),
migrations.AddField(
model_name='author',
name='homepage',
field=models.CharField(blank=True, max_length=2000, null=True),
),
migrations.AddField(
model_name='author',
name='photo',
field=models.ImageField(blank=True, null=True, upload_to='authors'),
),
migrations.AddField(
model_name='author',
name='slugfield',
field=models.SlugField(blank=True, max_length=500, null=True, unique=True),
),
]
18 changes: 18 additions & 0 deletions src/eoaauthors2/migrations/0003_author_reverse_names.py
@@ -0,0 +1,18 @@
# Generated by Django 2.1.5 on 2020-08-17 10:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('eoaauthors2', '0002_auto_20200814_1433'),
]

operations = [
migrations.AddField(
model_name='author',
name='reverse_names',
field=models.BooleanField(help_text='For East-Asian names, the last name is printed first.', null=True),
),
]

0 comments on commit 41deb3a

Please sign in to comment.