# Generated by Django 3.1.2 on 2021-02-07 12:11

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('House', '0012_auto_20210207_1201'),
    ]

    operations = [
        migrations.CreateModel(
            name='CityPart',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60)),
                ('slug', models.CharField(blank=True, max_length=60, unique=True)),
                ('city', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.DO_NOTHING, to='House.city')),
            ],
            options={
                'verbose_name_plural': 'City parts',
            },
        ),
        migrations.AddField(
            model_name='property',
            name='city_part',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='House.citypart'),
        ),
    ]
