text: # Generated by Django 2.2 on 2020-05-29 17:17
  
  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', '0005_post_image'),
      ]
  
      operations = [
          migrations.AlterField(
              model_name='post',
              name='image',
              field=models.ImageField(blank=True, null=True, upload_to='posts/', verbose_name='Изображение'),
          ),
          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='date published')),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='author_comments', to=settings.AUTH_USER_MODEL)),
                  ('post', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='group_posts', to='posts.Post')),
              ],
          ),
      ]
  