# Generated by Django 3.1 on 2020-08-16 06:32 import ckeditor.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('headline', models.CharField(max_length=100)), ('content', ckeditor.fields.RichTextField(blank=True, null=True)), ('date_published', models.DateTimeField(auto_now_add=True)), ('likes', models.IntegerField(default=0)), ('header', models.ImageField(blank=True, default='default-header.jpg', null=True, upload_to='article-headers')), ('header_caption', models.CharField(default='', max_length=100)), ('tag', models.CharField(choices=[('authoritarian_left', 'Authoritarian Left'), ('authoritarian_right', 'Authoritarian Right'), ('libertarian_left', 'Libertarian Left'), ('libertarian_right', 'Libertarian Right')], default='libertarian_left', max_length=19)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]