123456789101112131415161718192021222324252627282930 |
- # Generated by Django 4.1.4 on 2023-01-09 09:01
- from django.db import migrations, models
- import django.db.models.deletion
- class Migration(migrations.Migration):
- dependencies = [
- ('main', '0003_ad_alter_rubric_name_additionalimage'),
- ]
- operations = [
- migrations.CreateModel(
- name='Comment',
- fields=[
- ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('author', models.CharField(max_length=30, verbose_name='Автор')),
- ('content', models.TextField(verbose_name='Комментарий')),
- ('is_active', models.BooleanField(db_index=True, default=True, verbose_name='Выводить на экран?')),
- ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Опубликован')),
- ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.ad', verbose_name='Объявление')),
- ],
- options={
- 'verbose_name': 'Комментарий',
- 'verbose_name_plural': 'Комментарии',
- 'ordering': ['created_at'],
- },
- ),
- ]
|