text: # Generated by Django 3.1.1 on 2020-11-08 17:26
  
  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),
          ('posts', '0008_auto_20201106_2256'),
      ]
  
      operations = [
          migrations.AlterModelOptions(
              name='comment',
              options={'ordering': ('-created',), 'verbose_name': 'Комментарий', 'verbose_name_plural': 'Комментарии'},
          ),
          migrations.AlterField(
              model_name='comment',
              name='author',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL, verbose_name='Автор комментария'),
          ),
          migrations.AlterField(
              model_name='comment',
              name='created',
              field=models.DateTimeField(auto_now_add=True, verbose_name='Дата публикации'),
          ),
          migrations.AlterField(
              model_name='comment',
              name='post',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='posts.post', verbose_name='Пост'),
          ),
          migrations.AlterField(
              model_name='comment',
              name='text',
              field=models.TextField(verbose_name='Текст комментария'),
          ),
          migrations.AlterUniqueTogether(
              name='follow',
              unique_together=set(),
          ),
          migrations.AddConstraint(
              model_name='follow',
              constraint=models.UniqueConstraint(fields=('user', 'author'), name='unique_follow'),
          ),
      ]
  