<gh_stars>1-10
# Generated by Django 3.0.5 on 2020-05-30 21:29

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


class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0001_initial'),
        ('blogpost', '0002_auto_20200521_2110'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='blogpost',
            options={'ordering': ['-id']},
        ),
        migrations.AlterModelOptions(
            name='tag',
            options={'ordering': ['-id']},
        ),
        migrations.RemoveField(
            model_name='blogpost',
            name='author_id',
        ),
        migrations.AddField(
            model_name='blogpost',
            name='author',
            field=models.ForeignKey(default=1,
                                    on_delete=django.db.models.deletion.CASCADE,
                                    related_name='blogpost',
                                    to='profiles.Profile'),
        ),
        migrations.AddField(
            model_name='blogpost',
            name='category',
            field=models.CharField(max_length=255, null=True),
        ),
        migrations.AddField(
            model_name='blogpost',
            name='slug',
            field=models.SlugField(default='slug', max_length=255, unique=True),
        ),
    ]

# Generated by Django 3.0.5 on 2020-05-30 21:29

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


class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0001_initial'),
        ('blogpost', '0002_auto_20200521_2110'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='blogpost',
            options={'ordering': ['-id']},
        ),
        migrations.AlterModelOptions(
            name='tag',
            options={'ordering': ['-id']},
        ),
        migrations.RemoveField(
            model_name='blogpost',
            name='author_id',
        ),
        migrations.AddField(
            model_name='blogpost',
            name='author',
            field=models.ForeignKey(default=1,
                                    on_delete=django.db.models.deletion.CASCADE,
                                    related_name='blogpost',
                                    to='profiles.Profile'),
        ),
        migrations.AddField(
            model_name='blogpost',
            name='category',
            field=models.CharField(max_length=255, null=True),
        ),
        migrations.AddField(
            model_name='blogpost',
            name='slug',
            field=models.SlugField(default='slug', max_length=255, unique=True),
        ),
    ]
# Generated by Django 3.0.5 on 2020-05-30 21:29