# Generated by Django 2.0.5 on 2018-05-10 23:01

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('library', '0003_auto_20180510_2259'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='category',
            name='authore',
        ),
        migrations.AddField(
            model_name='category',
            name='author',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='categories', to=settings.AUTH_USER_MODEL, verbose_name='Автор'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='category',
            name='users',
            field=models.ManyToManyField(related_name='accessed_categories', through='library.UserCategory', to=settings.AUTH_USER_MODEL),
        ),
    ]
