You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.5 KiB
52 lines
1.5 KiB
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.6 on 2016-06-15 13:10
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
import mptt.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('common', '0001_initial'),
|
|
('projects', '0031_auto_20160610_1434'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveField(
|
|
model_name='city',
|
|
name='country',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='realty',
|
|
name='city',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='realty',
|
|
name='country',
|
|
),
|
|
migrations.AddField(
|
|
model_name='realty',
|
|
name='location',
|
|
field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='common.Location'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='order',
|
|
name='created',
|
|
field=models.DateTimeField(default=django.utils.timezone.now),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='project',
|
|
name='state',
|
|
field=models.CharField(choices=[('active', 'Активный'), ('trashed', 'В корзине'), ('deleted', 'Удален')], default='active', max_length=20),
|
|
),
|
|
migrations.DeleteModel(
|
|
name='City',
|
|
),
|
|
migrations.DeleteModel(
|
|
name='Country',
|
|
),
|
|
]
|
|
|