# Generated by Django 3.1.2 on 2020-12-09 08:46

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


class Migration(migrations.Migration):

    dependencies = [
        ('news', '0002_auto_20201207_1514'),
    ]

    operations = [
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
            ],
            options={
                'ordering': ('name',),
            },
        ),
        migrations.CreateModel(
            name='NewsTag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
                ('news', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.news')),
                ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.tag')),
            ],
            options={
                'ordering': ('created_on',),
            },
        ),
        migrations.AddField(
            model_name='news',
            name='tags',
            field=models.ManyToManyField(through='news.NewsTag', to='news.Tag'),
        ),
    ]

a18f3964985f59542a041dec1ca633a1924fe079
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    dependencies = [('news', '0002_auto_20201207_1514')]
    operations = [migrations.CreateModel(name='Tag', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=30))],
        options={'ordering': ('name',)}), migrations.CreateModel(name=
        'NewsTag', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), (
        'created_on', models.DateTimeField(auto_now_add=True, verbose_name=
        'created on')), ('news', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='news.news')), ('tag', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'news.tag'))], options={'ordering': ('created_on',)}), migrations.
        AddField(model_name='news', name='tags', field=models.
        ManyToManyField(through='news.NewsTag', to='news.Tag'))]

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


class Migration(migrations.Migration):
    dependencies = [('news', '0002_auto_20201207_1514')]
    operations = [migrations.CreateModel(name='Tag', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=30))],
        options={'ordering': ('name',)}), migrations.CreateModel(name=
        'NewsTag', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), (
        'created_on', models.DateTimeField(auto_now_add=True, verbose_name=
        'created on')), ('news', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='news.news')), ('tag', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'news.tag'))], options={'ordering': ('created_on',)}), migrations.
        AddField(model_name='news', name='tags', field=models.
        ManyToManyField(through='news.NewsTag', to='news.Tag'))]

# Generated by Django 3.1.2 on 2020-12-09 08:46

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


class Migration(migrations.Migration):

    dependencies = [
        ('news', '0002_auto_20201207_1514'),
    ]

    operations = [
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
            ],
            options={
                'ordering': ('name',),
            },
        ),
        migrations.CreateModel(
            name='NewsTag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
                ('news', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.news')),
                ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.tag')),
            ],
            options={
                'ordering': ('created_on',),
            },
        ),
        migrations.AddField(
            model_name='news',
            name='tags',
            field=models.ManyToManyField(through='news.NewsTag', to='news.Tag'),
        ),
    ]
