class Migration(migrations.Migration):

    dependencies = [
        ('comments', '0011_auto_20171007_0016'),
    ]

    operations = [
        migrations.AlterField(
            model_name='commentpost',
            name='img',
            field=models.ImageField(
                blank=True,
                default='/img/comments/vector-smart-object.png',
                upload_to='img',
                validators=[comments.models.validate_file_extension],
                verbose_name='Фото'),
        ),
        migrations.AlterField(
            model_name='commentpost',
            name='pub_date',
            field=models.DateTimeField(default=datetime.datetime(
                2017, 10, 8, 15, 56, 29, 125837),
                                       verbose_name='Дата комментария'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('comments', '0010_auto_20171006_2358'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='commentpost',
            name='file',
        ),
        migrations.AlterField(
            model_name='commentpost',
            name='img',
            field=models.ImageField(
                blank=True,
                default='/img/intro_vOaT9r2.jpg',
                upload_to='img',
                validators=[comments.models.validate_file_extension],
                verbose_name='Фото'),
        ),
        migrations.AlterField(
            model_name='commentpost',
            name='pub_date',
            field=models.DateTimeField(default=datetime.datetime(
                2017, 10, 7, 0, 16, 13, 868434),
                                       verbose_name='Дата комментария'),
        ),
    ]
예제 #3
0
class Migration(migrations.Migration):

    dependencies = [
        ('comments', '0009_auto_20201202_1417'),
    ]

    operations = [
        migrations.AddField(
            model_name='reviewimage',
            name='raw_photo',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=comments.models.review_photo_path),
        ),
    ]
예제 #4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='post',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(blank=True, upload_to='photos/%Y/%m/%d')),
                ('content',
                 models.CharField(
                     blank=True,
                     max_length=140,
                     validators=[comments.validation.validate_content])),
                ('updated',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now)),
                ('timestamp',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now)),
                ('comments',
                 djongo.models.fields.ArrayModelField(
                     blank=True,
                     model_container=comments.models.comment,
                     null=True)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comment_id',
                 models.IntegerField(default=comments.models.comment.ids,
                                     unique=True)),
                ('messages', models.CharField(blank=True, max_length=140)),
                ('time', models.DateTimeField(auto_now=True)),
                ('no_of_like', models.IntegerField(blank=True)),
                ('likes',
                 djongo.models.fields.ArrayModelField(
                     blank=True,
                     model_container=comments.models.like,
                     null=True)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]