diff options
author | luxagraf <sng@luxagraf.net> | 2019-01-31 09:46:28 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-01-31 09:46:28 -0600 |
commit | e19d3b03440f09b925b8a9fb6e2218823c959f3d (patch) | |
tree | 0b71d75d459ffa0c83da8c0eacd45dbef79b22f8 /app/publications/migrations/0004_pitchidea.py | |
parent | 44d80f01b51f9eaf723a7295d1c7c2c0cbf3ad8b (diff) |
added migration for pitch ideas
Diffstat (limited to 'app/publications/migrations/0004_pitchidea.py')
-rw-r--r-- | app/publications/migrations/0004_pitchidea.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/publications/migrations/0004_pitchidea.py b/app/publications/migrations/0004_pitchidea.py new file mode 100644 index 0000000..db72d58 --- /dev/null +++ b/app/publications/migrations/0004_pitchidea.py @@ -0,0 +1,28 @@ +# Generated by Django 2.1.1 on 2019-01-31 10:46 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('publications', '0003_auto_20190131_0923'), + ] + + operations = [ + migrations.CreateModel( + name='PitchIdea', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=250)), + ('pitch', models.TextField()), + ('date_created', models.DateTimeField(auto_now_add=True)), + ('date_updated', models.DateTimeField(auto_now=True)), + ('publication', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='publications.Publication')), + ], + options={ + 'ordering': ('-title', '-date_created'), + }, + ), + ] |