Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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',), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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), | ||
), | ||
] |