text: # Generated by Django 2.2.6 on 2020-10-14 14:06
  
  import django.db.models.deletion
  from django.conf import settings
  from django.db import migrations, models
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('posts', '0011_auto_20201014_1358'),
      ]
  
      operations = [
          migrations.AlterField(
              model_name='post',
              name='image',
              field=models.ImageField(blank=True, null=True, upload_to='media'),
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('text', models.TextField(verbose_name='Текст')),
                  ('created', models.DateTimeField(auto_now_add=True, verbose_name='Дата публикации')),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL, verbose_name='Автор')),
                  ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='posts.Post', verbose_name='Запись')),
              ],
              options={
                  'verbose_name': 'Комментарий',
                  'verbose_name_plural': 'Комментарии',
                  'ordering': ('-created',),
              },
          ),
      ]
  