From 4f1cd4c8a4c688e1914c54dab7a8219393fefe38 Mon Sep 17 00:00:00 2001 From: ArturBaybulatov Date: Fri, 22 Jul 2016 16:22:45 +0300 Subject: [PATCH 1/3] Remove migrations again --- chat/migrations/0001_initial.py | 31 --- chat/migrations/0002_auto_20160608_1555.py | 19 -- chat/migrations/0003_auto_20160629_1914.py | 39 ---- chat/migrations/0004_auto_20160630_1204.py | 26 --- chat/migrations/0005_notes.py | 26 --- chat/migrations/0006_auto_20160704_1811.py | 46 ----- chat/migrations/__init__.py | 0 common/migrations/0001_initial.py | 62 ------ common/migrations/0002_auto_20160615_1625.py | 31 --- common/migrations/0003_mainpage.py | 27 --- common/migrations/0004_settings.py | 25 --- common/migrations/__init__.py | 0 projects/migrations/0001_initial.py | 176 ------------------ .../migrations/0002_auto_20160519_1022.py | 35 ---- .../migrations/0003_auto_20160519_1312.py | 30 --- .../migrations/0004_auto_20160519_1338.py | 21 --- .../migrations/0005_auto_20160524_1053.py | 39 ---- .../migrations/0006_auto_20160524_1208.py | 80 -------- .../migrations/0007_auto_20160525_0948.py | 21 --- .../migrations/0008_auto_20160525_1044.py | 41 ---- .../migrations/0009_auto_20160525_1524.py | 41 ---- .../migrations/0010_auto_20160525_1525.py | 22 --- .../migrations/0011_auto_20160525_1526.py | 21 --- .../migrations/0012_auto_20160530_1355.py | 32 ---- .../migrations/0013_auto_20160602_1203.py | 20 -- .../migrations/0014_auto_20160602_1559.py | 29 --- .../migrations/0015_auto_20160602_1606.py | 20 -- .../migrations/0016_auto_20160603_1140.py | 26 --- .../migrations/0017_auto_20160606_1659.py | 50 ----- .../migrations/0018_auto_20160607_1915.py | 22 --- .../migrations/0019_auto_20160607_1916.py | 22 --- .../migrations/0020_auto_20160608_1555.py | 96 ---------- .../migrations/0021_auto_20160608_1602.py | 31 --- .../migrations/0022_auto_20160608_1605.py | 27 --- .../migrations/0023_auto_20160608_1609.py | 38 ---- .../migrations/0024_auto_20160609_1808.py | 105 ----------- .../migrations/0025_auto_20160609_1916.py | 21 --- .../migrations/0026_auto_20160610_1204.py | 28 --- .../migrations/0027_auto_20160610_1231.py | 26 --- .../migrations/0028_auto_20160610_1301.py | 20 -- projects/migrations/0029_project_active.py | 20 -- .../migrations/0030_auto_20160610_1430.py | 30 --- .../migrations/0031_auto_20160610_1434.py | 24 --- .../migrations/0032_auto_20160615_1610.py | 52 ------ .../migrations/0033_auto_20160621_1057.py | 21 --- .../migrations/0034_auto_20160622_1200.py | 20 -- .../migrations/0035_auto_20160630_1635.py | 30 --- .../migrations/0036_auto_20160630_1846.py | 22 --- .../migrations/0037_auto_20160704_1444.py | 22 --- .../migrations/0038_auto_20160706_1249.py | 73 -------- .../migrations/0039_auto_20160707_1724.py | 56 ------ projects/migrations/__init__.py | 0 reviews/migrations/0001_initial.py | 30 --- reviews/migrations/0002_auto_20160531_0906.py | 27 --- reviews/migrations/__init__.py | 0 specializations/migrations/0001_initial.py | 34 ---- .../migrations/0002_auto_20160602_1203.py | 19 -- specializations/migrations/__init__.py | 0 users/migrations/0001_initial.py | 149 --------------- users/migrations/0002_team_groups.py | 21 --- users/migrations/0003_user_created_at.py | 21 --- users/migrations/0004_auto_20160524_1053.py | 25 --- users/migrations/0005_auto_20160524_1054.py | 25 --- users/migrations/0006_auto_20160525_0948.py | 21 --- users/migrations/0007_auto_20160525_1526.py | 21 --- users/migrations/0008_auto_20160525_1527.py | 21 --- users/migrations/0009_auto_20160602_1213.py | 27 --- users/migrations/0010_user_last_time_visit.py | 21 --- .../0011_user_contractor_specializations.py | 21 --- users/migrations/0012_user_status.py | 20 -- users/migrations/0013_auto_20160610_1703.py | 20 -- users/migrations/0014_auto_20160615_1611.py | 28 --- users/migrations/0015_auto_20160615_1747.py | 78 -------- users/migrations/0016_auto_20160617_1815.py | 20 -- users/migrations/0017_user_phone.py | 20 -- users/migrations/0018_auto_20160710_1838.py | 44 ----- users/migrations/0019_auto_20160710_1950.py | 20 -- users/migrations/0020_auto_20160711_1759.py | 47 ----- .../0021_contractorresumefiles_resume.py | 22 --- users/migrations/__init__.py | 0 work_sell/migrations/0001_initial.py | 69 ------- .../migrations/0002_auto_20160607_1755.py | 20 -- .../migrations/0003_auto_20160621_1259.py | 28 --- work_sell/migrations/0004_worksell_price.py | 20 -- .../migrations/0005_auto_20160704_1449.py | 21 --- work_sell/migrations/0006_worksellphoto.py | 29 --- .../migrations/0007_auto_20160705_1514.py | 25 --- .../migrations/0008_auto_20160706_1249.py | 67 ------- .../migrations/0009_auto_20160707_1315.py | 56 ------ .../migrations/0010_auto_20160707_1401.py | 27 --- work_sell/migrations/0011_picture.py | 23 --- work_sell/migrations/__init__.py | 0 92 files changed, 3029 deletions(-) delete mode 100644 chat/migrations/0001_initial.py delete mode 100644 chat/migrations/0002_auto_20160608_1555.py delete mode 100644 chat/migrations/0003_auto_20160629_1914.py delete mode 100644 chat/migrations/0004_auto_20160630_1204.py delete mode 100644 chat/migrations/0005_notes.py delete mode 100644 chat/migrations/0006_auto_20160704_1811.py delete mode 100644 chat/migrations/__init__.py delete mode 100644 common/migrations/0001_initial.py delete mode 100644 common/migrations/0002_auto_20160615_1625.py delete mode 100644 common/migrations/0003_mainpage.py delete mode 100644 common/migrations/0004_settings.py delete mode 100644 common/migrations/__init__.py delete mode 100644 projects/migrations/0001_initial.py delete mode 100644 projects/migrations/0002_auto_20160519_1022.py delete mode 100644 projects/migrations/0003_auto_20160519_1312.py delete mode 100644 projects/migrations/0004_auto_20160519_1338.py delete mode 100644 projects/migrations/0005_auto_20160524_1053.py delete mode 100644 projects/migrations/0006_auto_20160524_1208.py delete mode 100644 projects/migrations/0007_auto_20160525_0948.py delete mode 100644 projects/migrations/0008_auto_20160525_1044.py delete mode 100644 projects/migrations/0009_auto_20160525_1524.py delete mode 100644 projects/migrations/0010_auto_20160525_1525.py delete mode 100644 projects/migrations/0011_auto_20160525_1526.py delete mode 100644 projects/migrations/0012_auto_20160530_1355.py delete mode 100644 projects/migrations/0013_auto_20160602_1203.py delete mode 100644 projects/migrations/0014_auto_20160602_1559.py delete mode 100644 projects/migrations/0015_auto_20160602_1606.py delete mode 100644 projects/migrations/0016_auto_20160603_1140.py delete mode 100644 projects/migrations/0017_auto_20160606_1659.py delete mode 100644 projects/migrations/0018_auto_20160607_1915.py delete mode 100644 projects/migrations/0019_auto_20160607_1916.py delete mode 100644 projects/migrations/0020_auto_20160608_1555.py delete mode 100644 projects/migrations/0021_auto_20160608_1602.py delete mode 100644 projects/migrations/0022_auto_20160608_1605.py delete mode 100644 projects/migrations/0023_auto_20160608_1609.py delete mode 100644 projects/migrations/0024_auto_20160609_1808.py delete mode 100644 projects/migrations/0025_auto_20160609_1916.py delete mode 100644 projects/migrations/0026_auto_20160610_1204.py delete mode 100644 projects/migrations/0027_auto_20160610_1231.py delete mode 100644 projects/migrations/0028_auto_20160610_1301.py delete mode 100644 projects/migrations/0029_project_active.py delete mode 100644 projects/migrations/0030_auto_20160610_1430.py delete mode 100644 projects/migrations/0031_auto_20160610_1434.py delete mode 100644 projects/migrations/0032_auto_20160615_1610.py delete mode 100644 projects/migrations/0033_auto_20160621_1057.py delete mode 100644 projects/migrations/0034_auto_20160622_1200.py delete mode 100644 projects/migrations/0035_auto_20160630_1635.py delete mode 100644 projects/migrations/0036_auto_20160630_1846.py delete mode 100644 projects/migrations/0037_auto_20160704_1444.py delete mode 100644 projects/migrations/0038_auto_20160706_1249.py delete mode 100644 projects/migrations/0039_auto_20160707_1724.py delete mode 100644 projects/migrations/__init__.py delete mode 100644 reviews/migrations/0001_initial.py delete mode 100644 reviews/migrations/0002_auto_20160531_0906.py delete mode 100644 reviews/migrations/__init__.py delete mode 100644 specializations/migrations/0001_initial.py delete mode 100644 specializations/migrations/0002_auto_20160602_1203.py delete mode 100644 specializations/migrations/__init__.py delete mode 100644 users/migrations/0001_initial.py delete mode 100644 users/migrations/0002_team_groups.py delete mode 100644 users/migrations/0003_user_created_at.py delete mode 100644 users/migrations/0004_auto_20160524_1053.py delete mode 100644 users/migrations/0005_auto_20160524_1054.py delete mode 100644 users/migrations/0006_auto_20160525_0948.py delete mode 100644 users/migrations/0007_auto_20160525_1526.py delete mode 100644 users/migrations/0008_auto_20160525_1527.py delete mode 100644 users/migrations/0009_auto_20160602_1213.py delete mode 100644 users/migrations/0010_user_last_time_visit.py delete mode 100644 users/migrations/0011_user_contractor_specializations.py delete mode 100644 users/migrations/0012_user_status.py delete mode 100644 users/migrations/0013_auto_20160610_1703.py delete mode 100644 users/migrations/0014_auto_20160615_1611.py delete mode 100644 users/migrations/0015_auto_20160615_1747.py delete mode 100644 users/migrations/0016_auto_20160617_1815.py delete mode 100644 users/migrations/0017_user_phone.py delete mode 100644 users/migrations/0018_auto_20160710_1838.py delete mode 100644 users/migrations/0019_auto_20160710_1950.py delete mode 100644 users/migrations/0020_auto_20160711_1759.py delete mode 100644 users/migrations/0021_contractorresumefiles_resume.py delete mode 100644 users/migrations/__init__.py delete mode 100644 work_sell/migrations/0001_initial.py delete mode 100644 work_sell/migrations/0002_auto_20160607_1755.py delete mode 100644 work_sell/migrations/0003_auto_20160621_1259.py delete mode 100644 work_sell/migrations/0004_worksell_price.py delete mode 100644 work_sell/migrations/0005_auto_20160704_1449.py delete mode 100644 work_sell/migrations/0006_worksellphoto.py delete mode 100644 work_sell/migrations/0007_auto_20160705_1514.py delete mode 100644 work_sell/migrations/0008_auto_20160706_1249.py delete mode 100644 work_sell/migrations/0009_auto_20160707_1315.py delete mode 100644 work_sell/migrations/0010_auto_20160707_1401.py delete mode 100644 work_sell/migrations/0011_picture.py delete mode 100644 work_sell/migrations/__init__.py diff --git a/chat/migrations/0001_initial.py b/chat/migrations/0001_initial.py deleted file mode 100644 index 8eba38a..0000000 --- a/chat/migrations/0001_initial.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-07 14:55 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('projects', '0017_auto_20160606_1659'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.CreateModel( - name='Message', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('text', models.TextField()), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='projects.Order')), - ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to=settings.AUTH_USER_MODEL)), - ], - ), - ] diff --git a/chat/migrations/0002_auto_20160608_1555.py b/chat/migrations/0002_auto_20160608_1555.py deleted file mode 100644 index d990d75..0000000 --- a/chat/migrations/0002_auto_20160608_1555.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-08 12:55 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('chat', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='message', - options={'verbose_name': 'Сообщение', 'verbose_name_plural': 'Сообщения'}, - ), - ] diff --git a/chat/migrations/0003_auto_20160629_1914.py b/chat/migrations/0003_auto_20160629_1914.py deleted file mode 100644 index 571da68..0000000 --- a/chat/migrations/0003_auto_20160629_1914.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-29 16:14 -from __future__ import unicode_literals - -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), - ('chat', '0002_auto_20160608_1555'), - ] - - operations = [ - migrations.RemoveField( - model_name='message', - name='user', - ), - migrations.AddField( - model_name='message', - name='recipent', - field=models.ForeignKey(default=5, on_delete=django.db.models.deletion.CASCADE, related_name='recipent_messages', to=settings.AUTH_USER_MODEL), - preserve_default=False, - ), - migrations.AddField( - model_name='message', - name='sender', - field=models.ForeignKey(default=4, on_delete=django.db.models.deletion.CASCADE, related_name='sender_messages', to=settings.AUTH_USER_MODEL), - preserve_default=False, - ), - migrations.AlterField( - model_name='message', - name='order', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='order_messages', to='projects.Order'), - ), - ] diff --git a/chat/migrations/0004_auto_20160630_1204.py b/chat/migrations/0004_auto_20160630_1204.py deleted file mode 100644 index 9604c3e..0000000 --- a/chat/migrations/0004_auto_20160630_1204.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-30 09:04 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('chat', '0003_auto_20160629_1914'), - ] - - operations = [ - migrations.AddField( - model_name='message', - name='private_type', - field=models.BooleanField(default=False), - ), - migrations.AlterField( - model_name='message', - name='order', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='order_messages', to='projects.Order'), - ), - ] diff --git a/chat/migrations/0005_notes.py b/chat/migrations/0005_notes.py deleted file mode 100644 index fea1d07..0000000 --- a/chat/migrations/0005_notes.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-04 11:44 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('chat', '0004_auto_20160630_1204'), - ] - - operations = [ - migrations.CreateModel( - name='Notes', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('text', models.TextField()), - ], - options={ - 'verbose_name_plural': 'Сообщения', - 'verbose_name': 'Сообщение', - }, - ), - ] diff --git a/chat/migrations/0006_auto_20160704_1811.py b/chat/migrations/0006_auto_20160704_1811.py deleted file mode 100644 index 6df4f18..0000000 --- a/chat/migrations/0006_auto_20160704_1811.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-04 15:11 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0037_auto_20160704_1444'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('chat', '0005_notes'), - ] - - operations = [ - migrations.AlterModelOptions( - name='notes', - options={'verbose_name': 'Заметка', 'verbose_name_plural': 'Заметки'}, - ), - migrations.AddField( - model_name='notes', - name='created', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - migrations.AddField( - model_name='notes', - name='order', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='order_notes', to='projects.Order'), - ), - migrations.AddField( - model_name='notes', - name='recipent', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='recipent_notes', to=settings.AUTH_USER_MODEL), - preserve_default=False, - ), - migrations.AddField( - model_name='notes', - name='sender', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='sender_notes', to=settings.AUTH_USER_MODEL), - preserve_default=False, - ), - ] diff --git a/chat/migrations/__init__.py b/chat/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/common/migrations/0001_initial.py b/common/migrations/0001_initial.py deleted file mode 100644 index 38ffe2f..0000000 --- a/common/migrations/0001_initial.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-21 15:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.db.models.manager -import mptt.fields - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Location', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=50)), - ('type', models.CharField(choices=[('_root', 'Корень'), ('country', 'Страна'), ('region', 'Регион'), ('town', 'Город')], max_length=20)), - ('lft', models.PositiveIntegerField(db_index=True, editable=False)), - ('rght', models.PositiveIntegerField(db_index=True, editable=False)), - ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)), - ('level', models.PositiveIntegerField(db_index=True, editable=False)), - ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='common.Location')), - ], - options={ - 'verbose_name': 'Местоположение', - 'verbose_name_plural': 'Местоположения', - }, - managers=[ - ('_default_manager', django.db.models.manager.Manager()), - ], - ), - migrations.CreateModel( - name='MainPage', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('contractor_text', models.TextField()), - ('customer_text', models.TextField()), - ('video_code', models.TextField()), - ], - options={ - 'verbose_name': 'Главная страница', - }, - ), - migrations.CreateModel( - name='Settings', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('time_notification', models.IntegerField(default=180)), - ], - options={ - 'verbose_name': 'Настройки сайта', - 'verbose_name_plural': 'Настройки сайта', - }, - ), - ] diff --git a/common/migrations/0002_auto_20160615_1625.py b/common/migrations/0002_auto_20160615_1625.py deleted file mode 100644 index cbdd8cd..0000000 --- a/common/migrations/0002_auto_20160615_1625.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-15 13:25 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='city', - name='country', - ), - migrations.AlterField( - model_name='location', - name='type', - field=models.CharField(choices=[('_root', 'Корень'), ('country', 'Страна'), ('region', 'Регион'), ('town', 'Город')], default=None, max_length=20), - preserve_default=False, - ), - migrations.DeleteModel( - name='City', - ), - migrations.DeleteModel( - name='Country', - ), - ] diff --git a/common/migrations/0003_mainpage.py b/common/migrations/0003_mainpage.py deleted file mode 100644 index c92a300..0000000 --- a/common/migrations/0003_mainpage.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-05 07:25 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0002_auto_20160615_1625'), - ] - - operations = [ - migrations.CreateModel( - name='MainPage', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('contractor_text', models.TextField()), - ('customer_text', models.TextField()), - ('video_code', models.TextField()), - ], - options={ - 'verbose_name': 'Главная страница', - }, - ), - ] diff --git a/common/migrations/0004_settings.py b/common/migrations/0004_settings.py deleted file mode 100644 index eb89b59..0000000 --- a/common/migrations/0004_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-13 09:17 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0003_mainpage'), - ] - - operations = [ - migrations.CreateModel( - name='Settings', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('time_notification', models.IntegerField(default=180)), - ], - options={ - 'verbose_name': 'Настройки сайта', - }, - ), - ] diff --git a/common/migrations/__init__.py b/common/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/projects/migrations/0001_initial.py b/projects/migrations/0001_initial.py deleted file mode 100644 index 6eb2ceb..0000000 --- a/projects/migrations/0001_initial.py +++ /dev/null @@ -1,176 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-21 15:08 -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): - - initial = True - - dependencies = [ - ('common', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='Answer', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('budget', models.DecimalField(decimal_places=0, max_digits=10)), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('currency', models.CharField(choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=5)), - ('term', models.IntegerField(default=0)), - ('term_type', models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=10)), - ('text', models.TextField()), - ], - options={ - 'verbose_name': 'Ответ к проекту', - 'ordering': ('-created',), - 'verbose_name_plural': 'Ответы к проектам', - }, - ), - migrations.CreateModel( - name='BuildingClassfication', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ], - options={ - 'verbose_name': 'Тип здания', - 'verbose_name_plural': 'Типы зданий', - }, - ), - migrations.CreateModel( - name='Candidate', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('status', models.BooleanField(default=False)), - ], - options={ - 'verbose_name': 'Кандидат', - 'verbose_name_plural': 'Кандидаты', - }, - ), - migrations.CreateModel( - name='ConstructionType', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ], - options={ - 'verbose_name': 'Вид строительства', - 'verbose_name_plural': 'Виды строительства', - }, - ), - migrations.CreateModel( - name='Order', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('secure', models.BooleanField(default=False)), - ('status', models.BooleanField(default=False)), - ], - options={ - 'verbose_name': 'Заказ', - 'verbose_name_plural': 'Заказы', - }, - ), - migrations.CreateModel( - name='Portfolio', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('budget', models.DecimalField(blank=True, decimal_places=0, default=0, max_digits=10, null=True)), - ('currency', models.CharField(blank=True, choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=20, null=True)), - ('description', models.TextField()), - ('name', models.CharField(max_length=255)), - ('term', models.IntegerField(blank=True, default=0, null=True)), - ('term_type', models.CharField(blank=True, choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20, null=True)), - ('worksell', models.BooleanField(default=False)), - ], - options={ - 'verbose_name': 'Портфолио', - 'verbose_name_plural': 'Портфолио', - }, - ), - migrations.CreateModel( - name='PortfolioPhoto', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('img', models.ImageField(upload_to='projects/portfolio')), - ], - options={ - 'verbose_name': 'Фото портфолио', - 'verbose_name_plural': 'Фото портфолио', - }, - ), - migrations.CreateModel( - name='Project', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('budget', models.DecimalField(decimal_places=0, max_digits=10)), - ('budget_by_agreement', models.BooleanField(default=False)), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('cro', models.BooleanField(default=False)), - ('currency', models.CharField(choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=20)), - ('deal_type', models.CharField(choices=[('secure_deal', 'Безопасная сделка (с резервированием бюджета) '), ('direct_payment', 'Прямая оплата Исполнителю на его кошелек/счет')], default='secure_deal', max_length=20)), - ('name', models.CharField(max_length=255)), - ('price_and_term_required', models.BooleanField(default=False)), - ('state', models.CharField(choices=[('active', 'Активный'), ('trashed', 'В корзине'), ('deleted', 'Удален')], default='active', max_length=20)), - ('term', models.IntegerField(default=0)), - ('term_type', models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20)), - ('text', models.TextField(blank=True)), - ('work_type', models.IntegerField(choices=[(1, 'Проектирование'), (2, 'Техническое сопровождение')], default=1)), - ], - options={ - 'verbose_name': 'Проект', - 'verbose_name_plural': 'Проекты', - }, - ), - migrations.CreateModel( - name='ProjectFile', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('file', models.FileField(upload_to='projects/project_files')), - ], - options={ - 'verbose_name': 'Файл проекта', - 'verbose_name_plural': 'Файлы проектов', - }, - ), - migrations.CreateModel( - name='Realty', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ('building_classification', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.BuildingClassfication')), - ('construction_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.ConstructionType')), - ('location', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='common.Location')), - ], - options={ - 'verbose_name': 'Объект', - 'verbose_name_plural': 'Объекты', - }, - ), - migrations.CreateModel( - name='Stage', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('cost', models.DecimalField(decimal_places=0, max_digits=10)), - ('cost_type', models.CharField(choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=5)), - ('name', models.CharField(max_length=255)), - ('result', models.CharField(max_length=255)), - ('term', models.IntegerField(default=0)), - ('term_type', models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=10)), - ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stages', to='projects.Order')), - ], - options={ - 'verbose_name': 'Этап', - 'verbose_name_plural': 'Этапы', - }, - ), - ] diff --git a/projects/migrations/0002_auto_20160519_1022.py b/projects/migrations/0002_auto_20160519_1022.py deleted file mode 100644 index a2bcea9..0000000 --- a/projects/migrations/0002_auto_20160519_1022.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-19 10:22 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('projects', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='portfolio', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - migrations.AddField( - model_name='answer', - name='project', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='projects.Project'), - ), - migrations.AddField( - model_name='answer', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/projects/migrations/0003_auto_20160519_1312.py b/projects/migrations/0003_auto_20160519_1312.py deleted file mode 100644 index 098a86d..0000000 --- a/projects/migrations/0003_auto_20160519_1312.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-19 13:12 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('specializations', '0001_initial'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('projects', '0002_auto_20160519_1022'), - ] - - operations = [ - migrations.AddField( - model_name='project', - name='specialization', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='projects', to='specializations.Specialization'), - ), - migrations.AddField( - model_name='project', - name='user', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='projects', to=settings.AUTH_USER_MODEL), - preserve_default=False, - ), - ] diff --git a/projects/migrations/0004_auto_20160519_1338.py b/projects/migrations/0004_auto_20160519_1338.py deleted file mode 100644 index 7370c40..0000000 --- a/projects/migrations/0004_auto_20160519_1338.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-19 13:38 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0003_auto_20160519_1312'), - ] - - operations = [ - migrations.AlterField( - model_name='project', - name='specialization', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='projects', to='specializations.Specialization'), - ), - ] diff --git a/projects/migrations/0005_auto_20160524_1053.py b/projects/migrations/0005_auto_20160524_1053.py deleted file mode 100644 index 823426b..0000000 --- a/projects/migrations/0005_auto_20160524_1053.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-24 10:53 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0004_auto_20160519_1338'), - ] - - operations = [ - migrations.AlterModelOptions( - name='portfolio', - options={'verbose_name': 'Портфолио', 'verbose_name_plural': 'Портфолио'}, - ), - migrations.AlterModelOptions( - name='portfoliophoto', - options={'verbose_name': 'Фото портфолио', 'verbose_name_plural': 'Фото портфолио'}, - ), - migrations.AddField( - model_name='answer', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 24, 10, 53, 28, 347882)), - ), - migrations.AlterField( - model_name='answer', - name='cost_type', - field=models.CharField(choices=[('rur', 'rur'), ('usd', 'usd'), ('eur', 'eur')], default='RUR', max_length=5), - ), - migrations.AlterField( - model_name='answer', - name='term_type', - field=models.CharField(choices=[('hour', 'hour'), ('day', 'day'), ('month', 'month')], default='HOUR', max_length=10), - ), - ] diff --git a/projects/migrations/0006_auto_20160524_1208.py b/projects/migrations/0006_auto_20160524_1208.py deleted file mode 100644 index 33afe73..0000000 --- a/projects/migrations/0006_auto_20160524_1208.py +++ /dev/null @@ -1,80 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-24 12:08 -from __future__ import unicode_literals - -import datetime -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), - ('projects', '0005_auto_20160524_1053'), - ] - - operations = [ - migrations.CreateModel( - name='Candidate', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('status', models.BooleanField(default=False)), - ], - options={ - 'verbose_name': 'Кандидат', - 'verbose_name_plural': 'Кандидаты', - }, - ), - migrations.AddField( - model_name='project', - name='budget', - field=models.CharField(blank=True, max_length=20), - ), - migrations.AddField( - model_name='project', - name='cro', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='project', - name='secure_transaction', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='project', - name='term_cost', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='project', - name='type_work', - field=models.CharField(choices=[('1', 'проектирование'), ('2', 'техническое сопровождение')], default='1', max_length=20), - ), - migrations.AlterField( - model_name='answer', - name='cost_type', - field=models.CharField(choices=[('rur', 'rur'), ('usd', 'usd'), ('eur', 'eur')], default='rur', max_length=5), - ), - migrations.AlterField( - model_name='answer', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 24, 12, 8, 51, 751897)), - ), - migrations.AlterField( - model_name='answer', - name='term_type', - field=models.CharField(choices=[('hour', 'hour'), ('day', 'day'), ('month', 'month')], default='hour', max_length=10), - ), - migrations.AddField( - model_name='candidate', - name='project', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='candidates', to='projects.Project'), - ), - migrations.AddField( - model_name='candidate', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='candidates', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/projects/migrations/0007_auto_20160525_0948.py b/projects/migrations/0007_auto_20160525_0948.py deleted file mode 100644 index 311806e..0000000 --- a/projects/migrations/0007_auto_20160525_0948.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 09:48 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0006_auto_20160524_1208'), - ] - - operations = [ - migrations.AlterField( - model_name='answer', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 25, 9, 48, 35, 275911)), - ), - ] diff --git a/projects/migrations/0008_auto_20160525_1044.py b/projects/migrations/0008_auto_20160525_1044.py deleted file mode 100644 index 71edc9f..0000000 --- a/projects/migrations/0008_auto_20160525_1044.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 10:44 -from __future__ import unicode_literals - -import datetime -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), - ('projects', '0007_auto_20160525_0948'), - ] - - operations = [ - migrations.CreateModel( - name='Realty', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ('building_classification', models.CharField(max_length=50)), - ('type_construction', models.CharField(max_length=50)), - ('country', models.CharField(max_length=50)), - ('city', models.CharField(max_length=50)), - ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realty', to=settings.AUTH_USER_MODEL)), - ], - ), - migrations.AlterField( - model_name='answer', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 25, 10, 44, 29, 360210)), - ), - migrations.AddField( - model_name='project', - name='realty', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='projects', to='projects.Realty'), - ), - ] diff --git a/projects/migrations/0009_auto_20160525_1524.py b/projects/migrations/0009_auto_20160525_1524.py deleted file mode 100644 index 6f35dc9..0000000 --- a/projects/migrations/0009_auto_20160525_1524.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 15:24 -from __future__ import unicode_literals - -import datetime -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('projects', '0008_auto_20160525_1044'), - ] - - operations = [ - migrations.CreateModel( - name='Order', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('cost', models.DecimalField(decimal_places=2, max_digits=10)), - ('term', models.IntegerField(default=1)), - ('created', models.DateTimeField(default=django.utils.timezone.now, editable=False)), - ('status', models.BooleanField(default=False)), - ('contractor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), - ('project', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='order', to='projects.Project')), - ], - ), - migrations.AlterModelOptions( - name='realty', - options={'verbose_name': 'Объект', 'verbose_name_plural': 'Объекты'}, - ), - migrations.AlterField( - model_name='answer', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 25, 15, 24, 2, 462642)), - ), - ] diff --git a/projects/migrations/0010_auto_20160525_1525.py b/projects/migrations/0010_auto_20160525_1525.py deleted file mode 100644 index 77bc8e9..0000000 --- a/projects/migrations/0010_auto_20160525_1525.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 15:25 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models -from django.utils.timezone import utc - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0009_auto_20160525_1524'), - ] - - operations = [ - migrations.AlterField( - model_name='answer', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 25, 15, 25, 42, 489763, tzinfo=utc)), - ), - ] diff --git a/projects/migrations/0011_auto_20160525_1526.py b/projects/migrations/0011_auto_20160525_1526.py deleted file mode 100644 index 601de14..0000000 --- a/projects/migrations/0011_auto_20160525_1526.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 15:26 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0010_auto_20160525_1525'), - ] - - operations = [ - migrations.AlterField( - model_name='answer', - name='created', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - ] diff --git a/projects/migrations/0012_auto_20160530_1355.py b/projects/migrations/0012_auto_20160530_1355.py deleted file mode 100644 index 555079f..0000000 --- a/projects/migrations/0012_auto_20160530_1355.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-30 13:55 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0011_auto_20160525_1526'), - ] - - operations = [ - migrations.AlterModelOptions( - name='order', - options={'verbose_name': 'Заказ', 'verbose_name_plural': 'Заказы'}, - ), - migrations.AddField( - model_name='project', - name='created', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - migrations.AlterField( - model_name='portfolio', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='portfolio', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/projects/migrations/0013_auto_20160602_1203.py b/projects/migrations/0013_auto_20160602_1203.py deleted file mode 100644 index 538672d..0000000 --- a/projects/migrations/0013_auto_20160602_1203.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-02 12:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0012_auto_20160530_1355'), - ] - - operations = [ - migrations.AlterField( - model_name='answer', - name='term', - field=models.IntegerField(default=0), - ), - ] diff --git a/projects/migrations/0014_auto_20160602_1559.py b/projects/migrations/0014_auto_20160602_1559.py deleted file mode 100644 index 40f79c9..0000000 --- a/projects/migrations/0014_auto_20160602_1559.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-02 15:59 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0013_auto_20160602_1203'), - ] - - operations = [ - migrations.AlterModelOptions( - name='answer', - options={'ordering': ('-created',), 'verbose_name': 'Ответ к проекту', 'verbose_name_plural': 'Ответы к проектам'}, - ), - migrations.AlterField( - model_name='order', - name='cost', - field=models.DecimalField(decimal_places=0, max_digits=10), - ), - migrations.AlterField( - model_name='project', - name='price', - field=models.DecimalField(decimal_places=0, max_digits=10), - ), - ] diff --git a/projects/migrations/0015_auto_20160602_1606.py b/projects/migrations/0015_auto_20160602_1606.py deleted file mode 100644 index e4caee6..0000000 --- a/projects/migrations/0015_auto_20160602_1606.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-02 16:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0014_auto_20160602_1559'), - ] - - operations = [ - migrations.AlterField( - model_name='answer', - name='cost', - field=models.DecimalField(decimal_places=0, max_digits=10), - ), - ] diff --git a/projects/migrations/0016_auto_20160603_1140.py b/projects/migrations/0016_auto_20160603_1140.py deleted file mode 100644 index a451cb6..0000000 --- a/projects/migrations/0016_auto_20160603_1140.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-03 11:40 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0015_auto_20160602_1606'), - ] - - operations = [ - migrations.RemoveField( - model_name='candidate', - name='user', - ), - migrations.AddField( - model_name='candidate', - name='answer', - field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='candidates', to='projects.Answer'), - preserve_default=False, - ), - ] diff --git a/projects/migrations/0017_auto_20160606_1659.py b/projects/migrations/0017_auto_20160606_1659.py deleted file mode 100644 index 96de7fd..0000000 --- a/projects/migrations/0017_auto_20160606_1659.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-06 13:59 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0016_auto_20160603_1140'), - ] - - operations = [ - migrations.CreateModel( - name='Stage', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ('result', models.CharField(max_length=255)), - ('cost', models.DecimalField(decimal_places=0, max_digits=10)), - ('cost_type', models.CharField(choices=[('rur', 'rur'), ('usd', 'usd'), ('eur', 'eur')], default='rur', max_length=5)), - ('term', models.IntegerField(default=0)), - ('term_type', models.CharField(choices=[('hour', 'hour'), ('day', 'day'), ('month', 'month')], default='hour', max_length=10)), - ], - options={ - 'verbose_name_plural': 'Этапы', - 'verbose_name': 'Этап', - }, - ), - migrations.RemoveField( - model_name='order', - name='cost', - ), - migrations.RemoveField( - model_name='order', - name='term', - ), - migrations.AddField( - model_name='order', - name='secure', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='stage', - name='order', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stages', to='projects.Order'), - ), - ] diff --git a/projects/migrations/0018_auto_20160607_1915.py b/projects/migrations/0018_auto_20160607_1915.py deleted file mode 100644 index abab8c4..0000000 --- a/projects/migrations/0018_auto_20160607_1915.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-07 16:15 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0017_auto_20160606_1659'), - ] - - operations = [ - migrations.AlterField( - model_name='order', - name='contractor', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/projects/migrations/0019_auto_20160607_1916.py b/projects/migrations/0019_auto_20160607_1916.py deleted file mode 100644 index 6806259..0000000 --- a/projects/migrations/0019_auto_20160607_1916.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-07 16:16 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0018_auto_20160607_1915'), - ] - - operations = [ - migrations.AlterField( - model_name='order', - name='contractor', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/projects/migrations/0020_auto_20160608_1555.py b/projects/migrations/0020_auto_20160608_1555.py deleted file mode 100644 index be0950b..0000000 --- a/projects/migrations/0020_auto_20160608_1555.py +++ /dev/null @@ -1,96 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-08 12:55 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0019_auto_20160607_1916'), - ] - - operations = [ - migrations.CreateModel( - name='BuildingClassfication', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ], - options={ - 'verbose_name': 'Тип здания', - 'verbose_name_plural': 'Типы здания', - }, - ), - migrations.CreateModel( - name='City', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ], - options={ - 'verbose_name': 'Город', - 'verbose_name_plural': 'Города', - }, - ), - migrations.CreateModel( - name='ConstructionType', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ], - options={ - 'verbose_name': 'Вид строительства', - 'verbose_name_plural': 'Виды строительства', - }, - ), - migrations.CreateModel( - name='Country', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ], - options={ - 'verbose_name': 'Страна', - 'verbose_name_plural': 'Страны', - }, - ), - migrations.RemoveField( - model_name='realty', - name='type_construction', - ), - migrations.AlterField( - model_name='answer', - name='cost_type', - field=models.CharField(choices=[('rur', ''), ('usd', 'usd'), ('eur', 'eur')], default='rur', max_length=5), - ), - migrations.AlterField( - model_name='realty', - name='building_classification', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.BuildingClassfication'), - ), - migrations.AlterField( - model_name='realty', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to=settings.AUTH_USER_MODEL), - ), - migrations.AlterField( - model_name='stage', - name='cost_type', - field=models.CharField(choices=[('rur', ''), ('usd', 'usd'), ('eur', 'eur')], default='rur', max_length=5), - ), - migrations.AddField( - model_name='city', - name='country', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cities', to='projects.Country'), - ), - migrations.AddField( - model_name='realty', - name='construction_type', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.ConstructionType'), - preserve_default=False, - ), - ] diff --git a/projects/migrations/0021_auto_20160608_1602.py b/projects/migrations/0021_auto_20160608_1602.py deleted file mode 100644 index c180d33..0000000 --- a/projects/migrations/0021_auto_20160608_1602.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-08 13:02 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0020_auto_20160608_1555'), - ] - - operations = [ - migrations.RemoveField( - model_name='realty', - name='building_classification', - ), - migrations.RemoveField( - model_name='realty', - name='city', - ), - migrations.RemoveField( - model_name='realty', - name='construction_type', - ), - migrations.RemoveField( - model_name='realty', - name='country', - ), - ] diff --git a/projects/migrations/0022_auto_20160608_1605.py b/projects/migrations/0022_auto_20160608_1605.py deleted file mode 100644 index 5967c9e..0000000 --- a/projects/migrations/0022_auto_20160608_1605.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-08 13:05 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0021_auto_20160608_1602'), - ] - - operations = [ - migrations.AddField( - model_name='realty', - name='building_classification', - field=models.CharField(default=None, max_length=255), - preserve_default=False, - ), - migrations.AddField( - model_name='realty', - name='construction_type', - field=models.CharField(default=None, max_length=255), - preserve_default=False, - ), - ] diff --git a/projects/migrations/0023_auto_20160608_1609.py b/projects/migrations/0023_auto_20160608_1609.py deleted file mode 100644 index ec65622..0000000 --- a/projects/migrations/0023_auto_20160608_1609.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-08 13:09 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0022_auto_20160608_1605'), - ] - - operations = [ - migrations.AddField( - model_name='realty', - name='city', - field=models.CharField(default=None, max_length=50), - preserve_default=False, - ), - migrations.AddField( - model_name='realty', - name='country', - field=models.CharField(default=None, max_length=50), - preserve_default=False, - ), - migrations.AlterField( - model_name='realty', - name='building_classification', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.BuildingClassfication'), - ), - migrations.AlterField( - model_name='realty', - name='construction_type', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.ConstructionType'), - ), - ] diff --git a/projects/migrations/0024_auto_20160609_1808.py b/projects/migrations/0024_auto_20160609_1808.py deleted file mode 100644 index b06db2a..0000000 --- a/projects/migrations/0024_auto_20160609_1808.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-09 15:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0023_auto_20160608_1609'), - ] - - operations = [ - migrations.CreateModel( - name='ProjectFile', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('file', models.FileField(upload_to='projects/project_files')), - ], - ), - migrations.RenameField( - model_name='project', - old_name='user', - new_name='customer', - ), - migrations.RenameField( - model_name='project', - old_name='secure_transaction', - new_name='secure_deal', - ), - migrations.RemoveField( - model_name='project', - name='price', - ), - migrations.RemoveField( - model_name='project', - name='term_cost', - ), - migrations.RemoveField( - model_name='project', - name='type_work', - ), - migrations.AddField( - model_name='project', - name='budget_by_agreement', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='project', - name='currency', - field=models.CharField(choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=20), - ), - migrations.AddField( - model_name='project', - name='price_and_term_required', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='project', - name='term', - field=models.IntegerField(default=0), - ), - migrations.AddField( - model_name='project', - name='term_type', - field=models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20), - ), - migrations.AddField( - model_name='project', - name='work_type', - field=models.IntegerField(choices=[('1', 'Проектирование'), ('2', 'Техническое сопровождение')], default=1), - ), - migrations.AlterField( - model_name='answer', - name='cost_type', - field=models.CharField(choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=5), - ), - migrations.AlterField( - model_name='answer', - name='term_type', - field=models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=10), - ), - migrations.AlterField( - model_name='project', - name='budget', - field=models.DecimalField(decimal_places=0, max_digits=10), - ), - migrations.AlterField( - model_name='stage', - name='cost_type', - field=models.CharField(choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=5), - ), - migrations.AlterField( - model_name='stage', - name='term_type', - field=models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=10), - ), - migrations.AddField( - model_name='projectfile', - name='project', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.Project'), - ), - ] diff --git a/projects/migrations/0025_auto_20160609_1916.py b/projects/migrations/0025_auto_20160609_1916.py deleted file mode 100644 index 077f15f..0000000 --- a/projects/migrations/0025_auto_20160609_1916.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-09 16:16 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0024_auto_20160609_1808'), - ] - - operations = [ - migrations.AlterField( - model_name='projectfile', - name='project', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='files', to='projects.Project'), - ), - ] diff --git a/projects/migrations/0026_auto_20160610_1204.py b/projects/migrations/0026_auto_20160610_1204.py deleted file mode 100644 index e96f2b5..0000000 --- a/projects/migrations/0026_auto_20160610_1204.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 09:04 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0025_auto_20160609_1916'), - ] - - operations = [ - migrations.AlterModelOptions( - name='projectfile', - options={'verbose_name': 'Файл проекта', 'verbose_name_plural': 'Файлы проектов'}, - ), - migrations.RemoveField( - model_name='project', - name='secure_deal', - ), - migrations.AddField( - model_name='project', - name='deal_type', - field=models.CharField(choices=[('secure_deal', 'Безопасная сделка (с резервированием бюджета) '), ('direct_payment', 'Прямая оплата Исполнителю на его кошелек/счет')], default='secure_deal', max_length=20), - ), - ] diff --git a/projects/migrations/0027_auto_20160610_1231.py b/projects/migrations/0027_auto_20160610_1231.py deleted file mode 100644 index 33d44bf..0000000 --- a/projects/migrations/0027_auto_20160610_1231.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 09:31 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0026_auto_20160610_1204'), - ] - - operations = [ - migrations.AlterField( - model_name='realty', - name='city', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.City'), - ), - migrations.AlterField( - model_name='realty', - name='country', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='realties', to='projects.Country'), - ), - ] diff --git a/projects/migrations/0028_auto_20160610_1301.py b/projects/migrations/0028_auto_20160610_1301.py deleted file mode 100644 index d5826d1..0000000 --- a/projects/migrations/0028_auto_20160610_1301.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 10:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0027_auto_20160610_1231'), - ] - - operations = [ - migrations.AlterField( - model_name='project', - name='work_type', - field=models.CharField(choices=[('1', 'Проектирование'), ('2', 'Техническое сопровождение')], default='1', max_length=20), - ), - ] diff --git a/projects/migrations/0029_project_active.py b/projects/migrations/0029_project_active.py deleted file mode 100644 index e292e83..0000000 --- a/projects/migrations/0029_project_active.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 11:16 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0028_auto_20160610_1301'), - ] - - operations = [ - migrations.AddField( - model_name='project', - name='active', - field=models.BooleanField(default=True), - ), - ] diff --git a/projects/migrations/0030_auto_20160610_1430.py b/projects/migrations/0030_auto_20160610_1430.py deleted file mode 100644 index c50dcdb..0000000 --- a/projects/migrations/0030_auto_20160610_1430.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 11:30 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0029_project_active'), - ] - - operations = [ - migrations.RenameField( - model_name='answer', - old_name='cost', - new_name='budget', - ), - migrations.RenameField( - model_name='answer', - old_name='user', - new_name='contractor', - ), - migrations.RenameField( - model_name='answer', - old_name='cost_type', - new_name='currency', - ), - ] diff --git a/projects/migrations/0031_auto_20160610_1434.py b/projects/migrations/0031_auto_20160610_1434.py deleted file mode 100644 index 92edae7..0000000 --- a/projects/migrations/0031_auto_20160610_1434.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 11:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0030_auto_20160610_1430'), - ] - - operations = [ - migrations.RemoveField( - model_name='project', - name='active', - ), - migrations.AddField( - model_name='project', - name='state', - field=models.CharField(choices=[('active', 'Активный'), ('trash', 'В корзине'), ('delete', 'Удален')], default='active', max_length=20), - ), - ] diff --git a/projects/migrations/0032_auto_20160615_1610.py b/projects/migrations/0032_auto_20160615_1610.py deleted file mode 100644 index 30cea38..0000000 --- a/projects/migrations/0032_auto_20160615_1610.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- 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', - ), - ] diff --git a/projects/migrations/0033_auto_20160621_1057.py b/projects/migrations/0033_auto_20160621_1057.py deleted file mode 100644 index f78937f..0000000 --- a/projects/migrations/0033_auto_20160621_1057.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-21 07:57 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0032_auto_20160615_1610'), - ] - - operations = [ - migrations.AlterField( - model_name='project', - name='realty', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='projects', to='projects.Realty'), - ), - ] diff --git a/projects/migrations/0034_auto_20160622_1200.py b/projects/migrations/0034_auto_20160622_1200.py deleted file mode 100644 index 7a373bb..0000000 --- a/projects/migrations/0034_auto_20160622_1200.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-22 09:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0033_auto_20160621_1057'), - ] - - operations = [ - migrations.AlterField( - model_name='project', - name='work_type', - field=models.IntegerField(choices=[('1', 'Проектирование'), ('2', 'Техническое сопровождение')], default=1, max_length=20), - ), - ] diff --git a/projects/migrations/0035_auto_20160630_1635.py b/projects/migrations/0035_auto_20160630_1635.py deleted file mode 100644 index 93c81f0..0000000 --- a/projects/migrations/0035_auto_20160630_1635.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-30 13:35 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0034_auto_20160622_1200'), - ] - - operations = [ - migrations.AlterModelOptions( - name='buildingclassfication', - options={'verbose_name': 'Тип здания', 'verbose_name_plural': 'Типы зданий'}, - ), - migrations.AlterField( - model_name='project', - name='work_type', - field=models.IntegerField(choices=[(1, 'Проектирование'), (2, 'Техническое сопровождение')], default=1), - ), - migrations.AlterField( - model_name='projectfile', - name='project', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='files', to='projects.Project'), - ), - ] diff --git a/projects/migrations/0036_auto_20160630_1846.py b/projects/migrations/0036_auto_20160630_1846.py deleted file mode 100644 index c09fa43..0000000 --- a/projects/migrations/0036_auto_20160630_1846.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-30 15:46 -from __future__ import unicode_literals - -from django.db import migrations -import django.db.models.deletion -import mptt.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0035_auto_20160630_1635'), - ] - - operations = [ - migrations.AlterField( - model_name='project', - name='specialization', - field=mptt.fields.TreeForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='projects', to='specializations.Specialization'), - ), - ] diff --git a/projects/migrations/0037_auto_20160704_1444.py b/projects/migrations/0037_auto_20160704_1444.py deleted file mode 100644 index 32fefbe..0000000 --- a/projects/migrations/0037_auto_20160704_1444.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-04 11:44 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0036_auto_20160630_1846'), - ] - - operations = [ - migrations.AlterField( - model_name='order', - name='contractor', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='orders', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/projects/migrations/0038_auto_20160706_1249.py b/projects/migrations/0038_auto_20160706_1249.py deleted file mode 100644 index ba7272e..0000000 --- a/projects/migrations/0038_auto_20160706_1249.py +++ /dev/null @@ -1,73 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-06 09:49 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import mptt.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0003_mainpage'), - ('specializations', '0002_auto_20160602_1203'), - ('projects', '0037_auto_20160704_1444'), - ] - - operations = [ - migrations.AddField( - model_name='portfolio', - name='budget', - field=models.DecimalField(decimal_places=0, default=0, max_digits=10, null=True), - ), - migrations.AddField( - model_name='portfolio', - name='budget_by_agreement', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='portfolio', - name='building_classification', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to='projects.BuildingClassfication'), - preserve_default=False, - ), - migrations.AddField( - model_name='portfolio', - name='construction_type', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to='projects.ConstructionType'), - preserve_default=False, - ), - migrations.AddField( - model_name='portfolio', - name='location', - field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to='common.Location'), - ), - migrations.AddField( - model_name='portfolio', - name='specialization', - field=mptt.fields.TreeForeignKey(default=5, on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to='specializations.Specialization'), - preserve_default=False, - ), - migrations.AddField( - model_name='portfolio', - name='term', - field=models.IntegerField(default=0), - ), - migrations.AddField( - model_name='portfolio', - name='term_type', - field=models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20), - ), - migrations.AddField( - model_name='portfolio', - name='worksell', - field=models.BooleanField(default=False), - ), - migrations.AlterField( - model_name='portfolio', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/projects/migrations/0039_auto_20160707_1724.py b/projects/migrations/0039_auto_20160707_1724.py deleted file mode 100644 index 3c52cb5..0000000 --- a/projects/migrations/0039_auto_20160707_1724.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-07 14:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import mptt.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0038_auto_20160706_1249'), - ] - - operations = [ - migrations.RemoveField( - model_name='portfolio', - name='budget_by_agreement', - ), - migrations.AddField( - model_name='portfolio', - name='currency', - field=models.CharField(blank=True, choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=20, null=True), - ), - migrations.AlterField( - model_name='portfolio', - name='budget', - field=models.DecimalField(blank=True, decimal_places=0, default=0, max_digits=10, null=True), - ), - migrations.AlterField( - model_name='portfolio', - name='building_classification', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to='projects.BuildingClassfication'), - ), - migrations.AlterField( - model_name='portfolio', - name='construction_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to='projects.ConstructionType'), - ), - migrations.AlterField( - model_name='portfolio', - name='specialization', - field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='portfolios', to='specializations.Specialization'), - ), - migrations.AlterField( - model_name='portfolio', - name='term', - field=models.IntegerField(blank=True, default=0, null=True), - ), - migrations.AlterField( - model_name='portfolio', - name='term_type', - field=models.CharField(blank=True, choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20, null=True), - ), - ] diff --git a/projects/migrations/__init__.py b/projects/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/reviews/migrations/0001_initial.py b/reviews/migrations/0001_initial.py deleted file mode 100644 index 6de7199..0000000 --- a/reviews/migrations/0001_initial.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-21 15:08 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Review', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('is_secured', models.BooleanField(default=False)), - ('stars', models.IntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5)])), - ('text', models.TextField()), - ], - options={ - 'verbose_name': 'Отзыв', - 'verbose_name_plural': 'Отзывы', - }, - ), - ] diff --git a/reviews/migrations/0002_auto_20160531_0906.py b/reviews/migrations/0002_auto_20160531_0906.py deleted file mode 100644 index 162115c..0000000 --- a/reviews/migrations/0002_auto_20160531_0906.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-31 09:06 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0012_auto_20160530_1355'), - ('reviews', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='review', - options={'verbose_name': 'Отзыв', 'verbose_name_plural': 'Отзывы'}, - ), - migrations.AddField( - model_name='review', - name='project', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='projects.Project'), - preserve_default=False, - ), - ] diff --git a/reviews/migrations/__init__.py b/reviews/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/specializations/migrations/0001_initial.py b/specializations/migrations/0001_initial.py deleted file mode 100644 index f2ace87..0000000 --- a/specializations/migrations/0001_initial.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-21 15:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import mptt.fields - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Specialization', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=100)), - ('lft', models.PositiveIntegerField(db_index=True, editable=False)), - ('rght', models.PositiveIntegerField(db_index=True, editable=False)), - ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)), - ('level', models.PositiveIntegerField(db_index=True, editable=False)), - ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='specializations.Specialization')), - ], - options={ - 'verbose_name': 'Специализация', - 'verbose_name_plural': 'Специализации', - }, - ), - ] diff --git a/specializations/migrations/0002_auto_20160602_1203.py b/specializations/migrations/0002_auto_20160602_1203.py deleted file mode 100644 index 110b8a5..0000000 --- a/specializations/migrations/0002_auto_20160602_1203.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-02 12:03 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('specializations', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='specialization', - options={'verbose_name': 'Специализация', 'verbose_name_plural': 'Специализации'}, - ), - ] diff --git a/specializations/migrations/__init__.py b/specializations/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/users/migrations/0001_initial.py b/users/migrations/0001_initial.py deleted file mode 100644 index b55587f..0000000 --- a/users/migrations/0001_initial.py +++ /dev/null @@ -1,149 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-21 15:08 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import mptt.fields - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('auth', '0007_alter_validators_add_error_messages'), - ('common', '0001_initial'), - ('specializations', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='User', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('password', models.CharField(max_length=128, verbose_name='password')), - ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), - ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), - ('avatar', models.ImageField(blank=True, upload_to='users/avatars/')), - ('contractor_status', models.CharField(choices=[('free', 'Свободен'), ('busy', 'Занят')], default='free', max_length=20)), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('cro', models.BooleanField(default=False)), - ('date_joined', models.DateTimeField(default=django.utils.timezone.now)), - ('date_of_birth', models.DateTimeField(blank=True, null=True)), - ('email', models.EmailField(db_index=True, max_length=255, unique=True)), - ('first_name', models.CharField(blank=True, max_length=255)), - ('gender', models.CharField(blank=True, choices=[('male', 'Мужской'), ('female', 'Женский')], max_length=30)), - ('is_active', models.BooleanField(default=True)), - ('last_name', models.CharField(blank=True, max_length=255)), - ('last_time_visit', models.DateTimeField(default=django.utils.timezone.now)), - ('patronym', models.CharField(blank=True, max_length=255)), - ('phone', models.CharField(blank=True, max_length=30, null=True)), - ('skype', models.CharField(blank=True, max_length=100)), - ('username', models.CharField(max_length=50, unique=True)), - ('website', models.CharField(blank=True, max_length=255)), - ], - options={ - 'verbose_name': 'Пользователь', - 'verbose_name_plural': 'Пользователи', - }, - ), - migrations.CreateModel( - name='ContractorFinancialInfo', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('credit_card_number', models.CharField(max_length=50)), - ('date_of_birth', models.DateTimeField()), - ('fio', models.CharField(max_length=255)), - ('inn', models.CharField(max_length=100)), - ('legal_status', models.CharField(choices=[('individual', 'Физическое лицо'), ('legal_entity', 'ИП и юридическое лицо')], max_length=30)), - ('passport_issue_date', models.DateTimeField()), - ('passport_issued_by', models.CharField(max_length=255)), - ('passport_number', models.CharField(max_length=10)), - ('passport_scan', models.ImageField(upload_to='users/contractors/')), - ('passport_series', models.CharField(max_length=6)), - ('phone', models.CharField(max_length=30)), - ('residency', models.CharField(choices=[('russian_resident', 'Резидент РФ'), ('non_russian_resident', 'Нерезидент РФ'), ('refugee', 'Беженец'), ('russian_stay_permit', 'Вид на жительство')], max_length=50)), - ('subdivision_code', models.CharField(max_length=10)), - ('yandex_money', models.CharField(max_length=50)), - ], - options={ - 'verbose_name': 'Финансовая информация', - 'verbose_name_plural': 'Финансовая информация', - }, - ), - migrations.CreateModel( - name='ContractorResume', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('resume_file', models.FileField(upload_to='users/resume/files/')), - ('text', models.TextField()), - ], - options={ - 'verbose_name': 'Резюме', - 'verbose_name_plural': 'Резюме', - }, - ), - migrations.CreateModel( - name='ContractorResumeFiles', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('description', models.TextField(blank=True)), - ('img', models.ImageField(upload_to='users/resume/images/')), - ('title', models.CharField(max_length=255)), - ('type', models.CharField(choices=[('diplom', 'Дипломы/Сертификаты'), ('cro', 'Допуск CPO')], max_length=50)), - ('resume', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='resume_files', to='users.ContractorResume')), - ], - options={ - 'verbose_name': 'Файлы резюме', - 'verbose_name_plural': 'Файлы резюме', - }, - ), - migrations.CreateModel( - name='Team', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('name', models.CharField(max_length=255)), - ('owner', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='team', to=settings.AUTH_USER_MODEL)), - ('specializations', mptt.fields.TreeManyToManyField(blank=True, related_name='teams', to='specializations.Specialization')), - ('users', models.ManyToManyField(blank=True, related_name='teams', to=settings.AUTH_USER_MODEL)), - ], - options={ - 'verbose_name': 'Команда', - 'verbose_name_plural': 'Команды', - }, - ), - migrations.AddField( - model_name='user', - name='contractor_financial_info', - field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor', to='users.ContractorFinancialInfo'), - ), - migrations.AddField( - model_name='user', - name='contractor_resume', - field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor', to='users.ContractorResume'), - ), - migrations.AddField( - model_name='user', - name='contractor_specializations', - field=mptt.fields.TreeManyToManyField(blank=True, related_name='contractors', to='specializations.Specialization'), - ), - migrations.AddField( - model_name='user', - name='groups', - field=models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups'), - ), - migrations.AddField( - model_name='user', - name='location', - field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='users', to='common.Location'), - ), - migrations.AddField( - model_name='user', - name='user_permissions', - field=models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), - ), - ] diff --git a/users/migrations/0002_team_groups.py b/users/migrations/0002_team_groups.py deleted file mode 100644 index 54251cc..0000000 --- a/users/migrations/0002_team_groups.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-19 14:52 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('auth', '0007_alter_validators_add_error_messages'), - ('users', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='team', - name='groups', - field=models.ManyToManyField(blank=True, related_name='teams', to='auth.Group'), - ), - ] diff --git a/users/migrations/0003_user_created_at.py b/users/migrations/0003_user_created_at.py deleted file mode 100644 index 5f63c7f..0000000 --- a/users/migrations/0003_user_created_at.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-24 10:52 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0002_team_groups'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='created_at', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 24, 10, 52, 56, 737277)), - ), - ] diff --git a/users/migrations/0004_auto_20160524_1053.py b/users/migrations/0004_auto_20160524_1053.py deleted file mode 100644 index 0f71065..0000000 --- a/users/migrations/0004_auto_20160524_1053.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-24 10:53 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0003_user_created_at'), - ] - - operations = [ - migrations.RemoveField( - model_name='team', - name='groups', - ), - migrations.AlterField( - model_name='user', - name='created_at', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 24, 10, 53, 15, 497921)), - ), - ] diff --git a/users/migrations/0005_auto_20160524_1054.py b/users/migrations/0005_auto_20160524_1054.py deleted file mode 100644 index 4a80d14..0000000 --- a/users/migrations/0005_auto_20160524_1054.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-24 10:54 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0004_auto_20160524_1053'), - ] - - operations = [ - migrations.RemoveField( - model_name='user', - name='created_at', - ), - migrations.AddField( - model_name='user', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 24, 10, 54, 13, 805566)), - ), - ] diff --git a/users/migrations/0006_auto_20160525_0948.py b/users/migrations/0006_auto_20160525_0948.py deleted file mode 100644 index 79ef51b..0000000 --- a/users/migrations/0006_auto_20160525_0948.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 09:48 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0005_auto_20160524_1054'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 25, 9, 48, 35, 257077)), - ), - ] diff --git a/users/migrations/0007_auto_20160525_1526.py b/users/migrations/0007_auto_20160525_1526.py deleted file mode 100644 index f3c493a..0000000 --- a/users/migrations/0007_auto_20160525_1526.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 15:26 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0006_auto_20160525_0948'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='created', - field=models.DateTimeField(default=datetime.datetime(2016, 5, 25, 15, 26, 33, 142994)), - ), - ] diff --git a/users/migrations/0008_auto_20160525_1527.py b/users/migrations/0008_auto_20160525_1527.py deleted file mode 100644 index cd55854..0000000 --- a/users/migrations/0008_auto_20160525_1527.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-05-25 15:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0007_auto_20160525_1526'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='created', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - ] diff --git a/users/migrations/0009_auto_20160602_1213.py b/users/migrations/0009_auto_20160602_1213.py deleted file mode 100644 index d614b22..0000000 --- a/users/migrations/0009_auto_20160602_1213.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-02 12:13 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0008_auto_20160525_1527'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='nickname', - field=models.CharField(blank=True, max_length=50, null=True), - ), - migrations.AlterField( - model_name='team', - name='owner', - field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='team', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/users/migrations/0010_user_last_time_visit.py b/users/migrations/0010_user_last_time_visit.py deleted file mode 100644 index 9932460..0000000 --- a/users/migrations/0010_user_last_time_visit.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-03 12:15 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0009_auto_20160602_1213'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='last_time_visit', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - ] diff --git a/users/migrations/0011_user_contractor_specializations.py b/users/migrations/0011_user_contractor_specializations.py deleted file mode 100644 index f8050dc..0000000 --- a/users/migrations/0011_user_contractor_specializations.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-08 15:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('specializations', '0002_auto_20160602_1203'), - ('users', '0010_user_last_time_visit'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='contractor_specializations', - field=models.ManyToManyField(blank=True, related_name='contractors', to='specializations.Specialization'), - ), - ] diff --git a/users/migrations/0012_user_status.py b/users/migrations/0012_user_status.py deleted file mode 100644 index 57dbb7f..0000000 --- a/users/migrations/0012_user_status.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 13:58 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0011_user_contractor_specializations'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='status', - field=models.CharField(choices=[('free', 'Свободен'), ('busy', 'Занят')], default='free', max_length=20), - ), - ] diff --git a/users/migrations/0013_auto_20160610_1703.py b/users/migrations/0013_auto_20160610_1703.py deleted file mode 100644 index f39186b..0000000 --- a/users/migrations/0013_auto_20160610_1703.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-10 14:03 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0012_user_status'), - ] - - operations = [ - migrations.RenameField( - model_name='user', - old_name='status', - new_name='contractor_status', - ), - ] diff --git a/users/migrations/0014_auto_20160615_1611.py b/users/migrations/0014_auto_20160615_1611.py deleted file mode 100644 index 130df78..0000000 --- a/users/migrations/0014_auto_20160615_1611.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-15 13:11 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import mptt.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('common', '0001_initial'), - ('users', '0013_auto_20160610_1703'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='location', - field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='users', to='common.Location'), - ), - migrations.AddField( - model_name='user', - name='patronym', - field=models.CharField(blank=True, max_length=255), - ), - ] diff --git a/users/migrations/0015_auto_20160615_1747.py b/users/migrations/0015_auto_20160615_1747.py deleted file mode 100644 index 26fcf13..0000000 --- a/users/migrations/0015_auto_20160615_1747.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-15 14:47 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models -import django.db.models.deletion -from django.utils.timezone import utc - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0014_auto_20160615_1611'), - ] - - operations = [ - migrations.CreateModel( - name='ContractorFinancialInfo', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('fio', models.CharField(max_length=255)), - ('date_of_birth', models.DateTimeField()), - ('phone', models.CharField(max_length=30)), - ('residency', models.CharField(choices=[('russian_resident', 'Резидент РФ'), ('non_russian_resident', 'Нерезидент РФ'), ('refugee', 'Беженец'), ('russian_stay_permit', 'Вид на жительство')], max_length=50)), - ('legal_status', models.CharField(choices=[('individual', 'Физическое лицо'), ('legal_entity', 'ИП и Юридическое лицо')], max_length=30)), - ('passport_series', models.CharField(max_length=6)), - ('passport_number', models.CharField(max_length=10)), - ('subdivision_code', models.CharField(max_length=10)), - ('passport_issued_by', models.CharField(max_length=255)), - ('passport_issue_date', models.DateTimeField()), - ('inn', models.CharField(max_length=100)), - ('yandex_money', models.CharField(max_length=50)), - ('credit_card_number', models.CharField(max_length=50)), - ('passport_scan', models.ImageField(upload_to='users/contractors/')), - ], - options={ - 'verbose_name': 'Финансовая информация', - 'verbose_name_plural': 'Финансовая информация', - }, - ), - migrations.AddField( - model_name='user', - name='avatar', - field=models.ImageField(blank=True, upload_to='users/avatars/'), - ), - migrations.AddField( - model_name='user', - name='cro', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='user', - name='date_of_birth', - field=models.DateTimeField(default=datetime.datetime(2016, 6, 15, 14, 47, 5, 758769, tzinfo=utc)), - preserve_default=False, - ), - migrations.AddField( - model_name='user', - name='gender', - field=models.CharField(blank=True, choices=[('male', 'Мужской'), ('female', 'Женский')], max_length=30), - ), - migrations.AddField( - model_name='user', - name='skype', - field=models.CharField(blank=True, max_length=100), - ), - migrations.AddField( - model_name='user', - name='website', - field=models.CharField(blank=True, max_length=255), - ), - migrations.AddField( - model_name='user', - name='contractor_financial_info', - field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor', to='users.ContractorFinancialInfo'), - ), - ] diff --git a/users/migrations/0016_auto_20160617_1815.py b/users/migrations/0016_auto_20160617_1815.py deleted file mode 100644 index c917b92..0000000 --- a/users/migrations/0016_auto_20160617_1815.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-17 15:15 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0015_auto_20160615_1747'), - ] - - operations = [ - migrations.AlterField( - model_name='contractorfinancialinfo', - name='legal_status', - field=models.CharField(choices=[('individual', 'Физическое лицо'), ('legal_entity', 'ИП и юридическое лицо')], max_length=30), - ), - ] diff --git a/users/migrations/0017_user_phone.py b/users/migrations/0017_user_phone.py deleted file mode 100644 index 6c51e9d..0000000 --- a/users/migrations/0017_user_phone.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-22 14:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0016_auto_20160617_1815'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='phone', - field=models.CharField(blank=True, max_length=30, null=True), - ), - ] diff --git a/users/migrations/0018_auto_20160710_1838.py b/users/migrations/0018_auto_20160710_1838.py deleted file mode 100644 index 8d8188d..0000000 --- a/users/migrations/0018_auto_20160710_1838.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-10 15:38 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models -import django.utils.timezone -from django.utils.timezone import utc -import mptt.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0017_user_phone'), - ] - - operations = [ - migrations.RemoveField( - model_name='user', - name='nickname', - ), - migrations.AddField( - model_name='user', - name='data_joined', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - migrations.AddField( - model_name='user', - name='username', - field=models.CharField(default=datetime.datetime(2016, 7, 10, 15, 38, 2, 660834, tzinfo=utc), max_length=50, unique=True), - preserve_default=False, - ), - migrations.AlterField( - model_name='user', - name='contractor_specializations', - field=mptt.fields.TreeManyToManyField(blank=True, related_name='contractors', to='specializations.Specialization'), - ), - migrations.AlterField( - model_name='user', - name='date_of_birth', - field=models.DateTimeField(blank=True, null=True), - ), - ] diff --git a/users/migrations/0019_auto_20160710_1950.py b/users/migrations/0019_auto_20160710_1950.py deleted file mode 100644 index 6472505..0000000 --- a/users/migrations/0019_auto_20160710_1950.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-10 16:50 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0018_auto_20160710_1838'), - ] - - operations = [ - migrations.RenameField( - model_name='user', - old_name='data_joined', - new_name='date_joined', - ), - ] diff --git a/users/migrations/0020_auto_20160711_1759.py b/users/migrations/0020_auto_20160711_1759.py deleted file mode 100644 index 0d729f3..0000000 --- a/users/migrations/0020_auto_20160711_1759.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-11 14:59 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0019_auto_20160710_1950'), - ] - - operations = [ - migrations.CreateModel( - name='ContractorResume', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('text', models.TextField()), - ('resume_file', models.FileField(upload_to='users/resume/files/')), - ], - options={ - 'verbose_name': 'Резюме', - 'verbose_name_plural': 'Резюме', - }, - ), - migrations.CreateModel( - name='ContractorResumeFiles', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('img', models.ImageField(upload_to='users/resume/images/')), - ('title', models.CharField(max_length=255)), - ('description', models.TextField(blank=True)), - ('type', models.CharField(choices=[('diplom', 'Дипломы/Сертификаты'), ('cro', 'Допуск CPO')], max_length=50)), - ], - options={ - 'verbose_name': 'Файлы резюме', - 'verbose_name_plural': 'Файлы резюме', - }, - ), - migrations.AddField( - model_name='user', - name='contractor_resume', - field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor', to='users.ContractorResume'), - ), - ] diff --git a/users/migrations/0021_contractorresumefiles_resume.py b/users/migrations/0021_contractorresumefiles_resume.py deleted file mode 100644 index 00b4577..0000000 --- a/users/migrations/0021_contractorresumefiles_resume.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-11 16:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0020_auto_20160711_1759'), - ] - - operations = [ - migrations.AddField( - model_name='contractorresumefiles', - name='resume', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='resume_files', to='users.ContractorResume'), - preserve_default=False, - ), - ] diff --git a/users/migrations/__init__.py b/users/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/work_sell/migrations/0001_initial.py b/work_sell/migrations/0001_initial.py deleted file mode 100644 index ab99020..0000000 --- a/work_sell/migrations/0001_initial.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-21 15:08 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import mptt.fields -import sorl.thumbnail.fields - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('common', '0001_initial'), - ('projects', '0001_initial'), - ('specializations', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='Picture', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('file', models.ImageField(upload_to='worksell/pictures')), - ('slug', models.SlugField(blank=True)), - ], - ), - migrations.CreateModel( - name='WorkSell', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('budget', models.DecimalField(blank=True, decimal_places=0, default=0, max_digits=10, null=True)), - ('created', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True)), - ('currency', models.CharField(blank=True, choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=20, null=True)), - ('description', models.TextField(blank=True)), - ('img', sorl.thumbnail.fields.ImageField(blank=True, null=True, upload_to='worksell/worksell')), - ('name', models.CharField(max_length=255)), - ('term', models.IntegerField(blank=True, default=0, null=True)), - ('term_type', models.CharField(blank=True, choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20, null=True)), - ('building_classification', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='projects.BuildingClassfication')), - ('construction_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='projects.ConstructionType')), - ('contractor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='work_sell', to=settings.AUTH_USER_MODEL)), - ('location', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='common.Location')), - ('specialization', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='specializations.Specialization')), - ], - options={ - 'verbose_name': 'Готовая работа', - 'ordering': ['-created'], - 'verbose_name_plural': 'Готовые работы', - }, - ), - migrations.CreateModel( - name='WorkSellPhoto', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('img', sorl.thumbnail.fields.ImageField(upload_to='worksell/worksell')), - ('worksell', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='work_sell.WorkSell')), - ], - options={ - 'verbose_name': 'Изображение Готовая работа', - 'verbose_name_plural': 'Изображения Готовые работы', - }, - ), - ] diff --git a/work_sell/migrations/0002_auto_20160607_1755.py b/work_sell/migrations/0002_auto_20160607_1755.py deleted file mode 100644 index 20cd2c9..0000000 --- a/work_sell/migrations/0002_auto_20160607_1755.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-07 14:55 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='worksell', - name='img', - field=models.ImageField(upload_to='worksell/worksell'), - ), - ] diff --git a/work_sell/migrations/0003_auto_20160621_1259.py b/work_sell/migrations/0003_auto_20160621_1259.py deleted file mode 100644 index 782cf6d..0000000 --- a/work_sell/migrations/0003_auto_20160621_1259.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-21 09:59 -from __future__ import unicode_literals - -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), - ('work_sell', '0002_auto_20160607_1755'), - ] - - operations = [ - migrations.AlterModelOptions( - name='worksell', - options={'verbose_name': 'Готовая работа', 'verbose_name_plural': 'Готовые работы'}, - ), - migrations.AddField( - model_name='worksell', - name='contractor', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='work_sell', to=settings.AUTH_USER_MODEL), - preserve_default=False, - ), - ] diff --git a/work_sell/migrations/0004_worksell_price.py b/work_sell/migrations/0004_worksell_price.py deleted file mode 100644 index 31de3be..0000000 --- a/work_sell/migrations/0004_worksell_price.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-06-21 10:19 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0003_auto_20160621_1259'), - ] - - operations = [ - migrations.AddField( - model_name='worksell', - name='price', - field=models.DecimalField(decimal_places=0, default=0, max_digits=10), - ), - ] diff --git a/work_sell/migrations/0005_auto_20160704_1449.py b/work_sell/migrations/0005_auto_20160704_1449.py deleted file mode 100644 index 7826eec..0000000 --- a/work_sell/migrations/0005_auto_20160704_1449.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-04 11:49 -from __future__ import unicode_literals - -from django.db import migrations -import sorl.thumbnail.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0004_worksell_price'), - ] - - operations = [ - migrations.AlterField( - model_name='worksell', - name='img', - field=sorl.thumbnail.fields.ImageField(upload_to='worksell/worksell'), - ), - ] diff --git a/work_sell/migrations/0006_worksellphoto.py b/work_sell/migrations/0006_worksellphoto.py deleted file mode 100644 index 08d2f2c..0000000 --- a/work_sell/migrations/0006_worksellphoto.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-04 15:54 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import sorl.thumbnail.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0005_auto_20160704_1449'), - ] - - operations = [ - migrations.CreateModel( - name='WorkSellPhoto', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('img', sorl.thumbnail.fields.ImageField(upload_to='worksell/worksell')), - ('worksell', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='work_sell.WorkSell')), - ], - options={ - 'verbose_name': 'Изображение Готовая работа', - 'verbose_name_plural': 'Изображения Готовые работы', - }, - ), - ] diff --git a/work_sell/migrations/0007_auto_20160705_1514.py b/work_sell/migrations/0007_auto_20160705_1514.py deleted file mode 100644 index 4d12f7c..0000000 --- a/work_sell/migrations/0007_auto_20160705_1514.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-05 12:14 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0006_worksellphoto'), - ] - - operations = [ - migrations.AlterModelOptions( - name='worksell', - options={'ordering': ['-created'], 'verbose_name': 'Готовая работа', 'verbose_name_plural': 'Готовые работы'}, - ), - migrations.AddField( - model_name='worksell', - name='created', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - ] diff --git a/work_sell/migrations/0008_auto_20160706_1249.py b/work_sell/migrations/0008_auto_20160706_1249.py deleted file mode 100644 index 569d9b3..0000000 --- a/work_sell/migrations/0008_auto_20160706_1249.py +++ /dev/null @@ -1,67 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-06 09:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import mptt.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('projects', '0038_auto_20160706_1249'), - ('common', '0003_mainpage'), - ('specializations', '0002_auto_20160602_1203'), - ('work_sell', '0007_auto_20160705_1514'), - ] - - operations = [ - migrations.RemoveField( - model_name='worksell', - name='price', - ), - migrations.AddField( - model_name='worksell', - name='budget', - field=models.DecimalField(decimal_places=0, default=0, max_digits=10, null=True), - ), - migrations.AddField( - model_name='worksell', - name='budget_by_agreement', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='worksell', - name='building_classification', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='projects.BuildingClassfication'), - preserve_default=False, - ), - migrations.AddField( - model_name='worksell', - name='construction_type', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='projects.ConstructionType'), - preserve_default=False, - ), - migrations.AddField( - model_name='worksell', - name='location', - field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='common.Location'), - ), - migrations.AddField( - model_name='worksell', - name='specialization', - field=mptt.fields.TreeForeignKey(default=5, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='specializations.Specialization'), - preserve_default=False, - ), - migrations.AddField( - model_name='worksell', - name='term', - field=models.IntegerField(default=0), - ), - migrations.AddField( - model_name='worksell', - name='term_type', - field=models.CharField(choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20), - ), - ] diff --git a/work_sell/migrations/0009_auto_20160707_1315.py b/work_sell/migrations/0009_auto_20160707_1315.py deleted file mode 100644 index 15bb2d8..0000000 --- a/work_sell/migrations/0009_auto_20160707_1315.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-07 10:15 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import mptt.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0008_auto_20160706_1249'), - ] - - operations = [ - migrations.RemoveField( - model_name='worksell', - name='budget_by_agreement', - ), - migrations.AddField( - model_name='worksell', - name='currency', - field=models.CharField(blank=True, choices=[('rur', 'RUR'), ('usd', 'USD'), ('eur', 'EUR')], default='rur', max_length=20, null=True), - ), - migrations.AlterField( - model_name='worksell', - name='budget', - field=models.DecimalField(blank=True, decimal_places=0, default=0, max_digits=10, null=True), - ), - migrations.AlterField( - model_name='worksell', - name='building_classification', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='projects.BuildingClassfication'), - ), - migrations.AlterField( - model_name='worksell', - name='construction_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='projects.ConstructionType'), - ), - migrations.AlterField( - model_name='worksell', - name='specialization', - field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='worksells', to='specializations.Specialization'), - ), - migrations.AlterField( - model_name='worksell', - name='term', - field=models.IntegerField(blank=True, default=0, null=True), - ), - migrations.AlterField( - model_name='worksell', - name='term_type', - field=models.CharField(blank=True, choices=[('project', 'За проект'), ('hour', 'За час'), ('day', 'За день'), ('month', 'За месяц')], default='hour', max_length=20, null=True), - ), - ] diff --git a/work_sell/migrations/0010_auto_20160707_1401.py b/work_sell/migrations/0010_auto_20160707_1401.py deleted file mode 100644 index 321b296..0000000 --- a/work_sell/migrations/0010_auto_20160707_1401.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.6 on 2016-07-07 11:01 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone -import sorl.thumbnail.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0009_auto_20160707_1315'), - ] - - operations = [ - migrations.AlterField( - model_name='worksell', - name='created', - field=models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True), - ), - migrations.AlterField( - model_name='worksell', - name='img', - field=sorl.thumbnail.fields.ImageField(blank=True, null=True, upload_to='worksell/worksell'), - ), - ] diff --git a/work_sell/migrations/0011_picture.py b/work_sell/migrations/0011_picture.py deleted file mode 100644 index cdb20e8..0000000 --- a/work_sell/migrations/0011_picture.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.7 on 2016-07-11 08:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('work_sell', '0010_auto_20160707_1401'), - ] - - operations = [ - migrations.CreateModel( - name='Picture', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('file', models.ImageField(upload_to='worksell/pictures')), - ('slug', models.SlugField(blank=True)), - ], - ), - ] diff --git a/work_sell/migrations/__init__.py b/work_sell/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 From 381a06b87ad8f87cec6022f65f3bb65ad48f44eb Mon Sep 17 00:00:00 2001 From: ArturBaybulatov Date: Fri, 22 Jul 2016 16:46:43 +0300 Subject: [PATCH 2/3] Add __init__.py to migrations --- chat/migrations/__init__.py | 0 common/migrations/__init__.py | 0 projects/migrations/__init__.py | 0 reviews/migrations/__init__.py | 0 specializations/migrations/__init__.py | 0 users/migrations/__init__.py | 0 work_sell/migrations/__init__.py | 0 7 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 chat/migrations/__init__.py create mode 100644 common/migrations/__init__.py create mode 100644 projects/migrations/__init__.py create mode 100644 reviews/migrations/__init__.py create mode 100644 specializations/migrations/__init__.py create mode 100644 users/migrations/__init__.py create mode 100644 work_sell/migrations/__init__.py diff --git a/chat/migrations/__init__.py b/chat/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/common/migrations/__init__.py b/common/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/projects/migrations/__init__.py b/projects/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/reviews/migrations/__init__.py b/reviews/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/specializations/migrations/__init__.py b/specializations/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/users/migrations/__init__.py b/users/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/work_sell/migrations/__init__.py b/work_sell/migrations/__init__.py new file mode 100644 index 0000000..e69de29 From becf37b62981e4883749ee012cd6ba86bcfee543 Mon Sep 17 00:00:00 2001 From: ArturBaybulatov Date: Mon, 25 Jul 2016 10:30:20 +0300 Subject: [PATCH 3/3] #ARC-27 --- api/views.py | 8 +- archilance/settings/base.py | 11 + archilance/urls.py | 1 + archilance/util.py | 14 ++ common/templatetags/common_tags.py | 20 +- projects/forms.py | 16 +- projects/models.py | 4 +- requirements/base.txt | 1 + .../0002_remove_review_is_secured.py | 19 ++ reviews/models.py | 1 - specializations/views.py | 4 +- users/forms.py | 8 +- .../contractor_financical_info_edit.html | 207 +++++++++--------- users/templates/contractor_profile.html | 2 + users/templates/contractor_profile_edit.html | 7 +- .../customer_profile_current_projects.html | 2 + users/templates/customer_profile_edit.html | 3 + .../customer_profile_open_projects.html | 1 + users/templates/customer_profile_reviews.html | 33 ++- users/views.py | 30 ++- work_sell/forms.py | 4 +- 21 files changed, 261 insertions(+), 135 deletions(-) create mode 100644 reviews/migrations/0002_remove_review_is_secured.py diff --git a/api/views.py b/api/views.py index 8aaeff2..bc6f52e 100755 --- a/api/views.py +++ b/api/views.py @@ -55,8 +55,8 @@ class RealtyViewSet(ModelViewSet): class SpecializationViewSet(ModelViewSet): - # queryset = Specialization.objects.root_nodes()[0].get_descendants() - queryset = Specialization.objects # TODO: Tmp + queryset = Specialization.objects.root_nodes()[0].get_descendants() + # queryset = Specialization.objects # Migrate with this enabled serializer_class = SpecializationSerializer filter_class = SpecializationFilterSet @@ -68,7 +68,7 @@ class UserViewSet(ModelViewSet): class LocationViewSet(ModelViewSet): - # queryset = Location.objects.root_nodes()[0].get_descendants() - queryset = Location.objects # TODO: Tmp + queryset = Location.objects.root_nodes()[0].get_descendants() + # queryset = Location.objects # Migrate with this enabled serializer_class = LocationSerializer filter_class = LocationFilterSet diff --git a/archilance/settings/base.py b/archilance/settings/base.py index 9cb8382..8b68b49 100644 --- a/archilance/settings/base.py +++ b/archilance/settings/base.py @@ -39,6 +39,7 @@ THIRD_PARTY_APPS = [ 'sorl.thumbnail', 'compressor', 'password_reset', + 'mathfilters', # Basic math operations in templates; https://pypi.python.org/pypi/django-mathfilters ] LOCAL_APPS = [ @@ -74,6 +75,7 @@ TEMPLATES = [ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(ROOT_DIR, 'templates')], 'APP_DIRS': True, + 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', @@ -81,6 +83,15 @@ TEMPLATES = [ 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], + + + # Load these templatetags by default: + + 'builtins': [ + 'django.templatetags.static', + 'mathfilters.templatetags.mathfilters', + 'common.templatetags.common_tags', + ], }, }, ] diff --git a/archilance/urls.py b/archilance/urls.py index 5a4f83b..0f7eead 100644 --- a/archilance/urls.py +++ b/archilance/urls.py @@ -7,6 +7,7 @@ from django.views.generic import TemplateView from .views import HomeTemplateView, TestChatTemplateView + urlpatterns = [ url(r'^$', HomeTemplateView.as_view()), url('', include('social.apps.django_app.urls', namespace='social')), diff --git a/archilance/util.py b/archilance/util.py index 6b8f157..c96141b 100644 --- a/archilance/util.py +++ b/archilance/util.py @@ -49,3 +49,17 @@ def model_fields(model, width=200): 'Blank? %s' % f.blank if not f.is_relation else '(relation)', 'Hidden? %s' % (f.is_hidden() if hasattr(f, 'is_hidden') else False), ) for f in model._meta.get_fields(include_hidden=True)], width=width) + + +def lorem(sentences=5): + words = _.split(( + 'a ac adipiscing amet ante arcu at auctor augue bibendum commodo condimentum consectetur consequat convallis curabitur' + 'cursus diam dictum dignissim dolor donec duis efficitur eget eleifend elit enim erat et eu ex facilisis faucibus feugiat' + 'finibus gravida iaculis id imperdiet in integer ipsum lacinia lacus laoreet lectus leo libero ligula lobortis lorem' + 'luctus maecenas mauris metus mi mollis morbi nam nec neque nisi non nulla nullam nunc odio orci ornare pellentesque' + 'pharetra phasellus porta porttitor posuere pretium proin pulvinar purus quam quis rhoncus rutrum sapien sed sem semper' + 'sit sollicitudin tempor tempus tincidunt tortor turpis ullamcorper ultricies ut varius vehicula vel velit vestibulum' + 'vitae viverra volutpat vulputate' + ), ' ') + + return _.join(_.times(lambda i_: _.capitalize(_.join(_.sample(words, _.random(5, 30)), ' ')), sentences), '. ') diff --git a/common/templatetags/common_tags.py b/common/templatetags/common_tags.py index f73a9a0..d83c232 100644 --- a/common/templatetags/common_tags.py +++ b/common/templatetags/common_tags.py @@ -2,15 +2,17 @@ from django import template from pprint import pprint, pformat import os -register = template.Library() +from archilance import util + +register = template.Library() # @register.inclusion_tag('templatetags/inspect.html', takes_context=True) # def inspect(context, obj): # return {'obj': pformat(obj.__dict__)} -@register.filter('inspect') +@register.filter def inspect(obj): return pformat(obj.__dict__) @@ -30,7 +32,12 @@ def to_str(val): return str(val) -@register.filter('class_name') +@register.filter('range') +def to_range(num): + return range(num) + + +@register.filter def class_name(val): return type(val).__name__ @@ -40,9 +47,14 @@ def multiply(string, times): return string * times -@register.filter('basename') +@register.filter def basename(val): return os.path.basename(val) +@register.simple_tag +def lorem(*args, **kwargs): + return util.lorem(*args, **kwargs) + + # import code; code.interact(local=dict(globals(), **locals())) diff --git a/projects/forms.py b/projects/forms.py index c5cb322..a6a1222 100644 --- a/projects/forms.py +++ b/projects/forms.py @@ -46,8 +46,8 @@ class ProjectFilterForm(forms.ModelForm): self.fields['specialization'].required = False - # self.fields['specialization'].queryset = Specialization.objects.root_nodes()[0].get_descendants() - self.fields['specialization'].queryset = Specialization.objects # TODO: Tmp + self.fields['specialization'].queryset = Specialization.objects.root_nodes()[0].get_descendants() + # self.fields['specialization'].queryset = Specialization.objects # Migrate with this enabled class ProjectFilterRealtyForm(forms.ModelForm): @@ -75,8 +75,8 @@ class ProjectFilterRealtyForm(forms.ModelForm): self.fields['construction_type'].empty_label = '' self.fields['construction_type'].required = False - # self.fields['location'].queryset = Location.objects.root_nodes()[0].get_descendants() - self.fields['location'].queryset = Location.objects # TODO: Tmp + self.fields['location'].queryset = Location.objects.root_nodes()[0].get_descendants() + # self.fields['location'].queryset = Location.objects # Migrate with this enabled class CustomerProjectEditForm(forms.ModelForm): @@ -117,8 +117,8 @@ class CustomerProjectEditForm(forms.ModelForm): self.fields['realty'].empty_label = 'Создать новый' - # self.fields['specialization'].queryset = Specialization.objects.root_nodes()[0].get_descendants() - self.fields['specialization'].queryset = Specialization.objects # TODO: Tmp + self.fields['specialization'].queryset = Specialization.objects.root_nodes()[0].get_descendants() + # self.fields['specialization'].queryset = Specialization.objects # Migrate with this enabled if self.instance.pk: self.fields['files'].queryset = self.instance.files @@ -144,8 +144,8 @@ class RealtyForm(forms.ModelForm): self.request = kwargs.pop('request') super().__init__(*args, **kwargs) - # self.fields['location'].queryset = Location.objects.root_nodes()[0].get_descendants() - self.fields['location'].queryset = Location.objects # TODO: Tmp + self.fields['location'].queryset = Location.objects.root_nodes()[0].get_descendants() + # self.fields['location'].queryset = Location.objects # Migrate with this enabled class Realty1Form(forms.Form): diff --git a/projects/models.py b/projects/models.py index df4edcd..70f05aa 100644 --- a/projects/models.py +++ b/projects/models.py @@ -65,8 +65,8 @@ class Project(models.Model): ) DEAL_TYPES = ( - ('secure_deal', 'Безопасная сделка (с резервированием бюджета) '), - ('direct_payment', 'Прямая оплата Исполнителю на его кошелек/счет'), + ('secure_deal', 'Безопасная сделка'), # "Безопасная сделка (с резервированием бюджета)" + ('direct_payment', 'Прямая оплата'), # "Прямая оплата Исполнителю на его кошелек/счет" ) STATES = ( diff --git a/requirements/base.txt b/requirements/base.txt index 790f1a6..cfc10d3 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -37,3 +37,4 @@ sorl-thumbnail==12.3 sqlparse==0.1.19 tornado==4.3 natsort +django-mathfilters diff --git a/reviews/migrations/0002_remove_review_is_secured.py b/reviews/migrations/0002_remove_review_is_secured.py new file mode 100644 index 0000000..119a733 --- /dev/null +++ b/reviews/migrations/0002_remove_review_is_secured.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-07-24 12:51 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('reviews', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='review', + name='is_secured', + ), + ] diff --git a/reviews/models.py b/reviews/models.py index 56b7358..c51ee6e 100644 --- a/reviews/models.py +++ b/reviews/models.py @@ -2,7 +2,6 @@ from django.db import models from django.core.validators import MaxValueValidator, MinValueValidator class Review(models.Model): - is_secured = models.BooleanField(default=False) project = models.ForeignKey('projects.Project', related_name='reviews') stars = models.IntegerField(validators=[MinValueValidator(1), MaxValueValidator(5)]) text = models.TextField() diff --git a/specializations/views.py b/specializations/views.py index 2f9b68d..98cf314 100644 --- a/specializations/views.py +++ b/specializations/views.py @@ -15,8 +15,8 @@ class SpecListView(ListView): context['root'] = root context['children'] = root.get_children() - # context['roots'] = Specialization.objects.root_nodes() - context['roots'] = Specialization.objects.filter(name='_root') # TODO: Tmp + context['roots'] = Specialization.objects.root_nodes() + # context['roots'] = Specialization.objects.filter(name='_root') # Migrate with this enabled return context diff --git a/users/forms.py b/users/forms.py index 4142b84..cf3b0ec 100644 --- a/users/forms.py +++ b/users/forms.py @@ -62,14 +62,14 @@ class ContractorFilterForm(forms.Form): reverse_order = forms.BooleanField(required=False) specialization = forms.ModelChoiceField( - # queryset=Specialization.objects.root_nodes()[0].get_descendants(), - queryset=Specialization.objects, # TODO: Tmp, + queryset=Specialization.objects.root_nodes()[0].get_descendants(), + # queryset=Specialization.objects, # Migrate with this enabled required=False, ) location = forms.ModelChoiceField( - # queryset=Location.objects.root_nodes()[0].get_descendants(), - queryset=Location.objects, # TODO: Tmp + queryset=Location.objects.root_nodes()[0].get_descendants(), + # queryset=Location.objects, # Migrate with this enabled required=False, ) diff --git a/users/templates/contractor_financical_info_edit.html b/users/templates/contractor_financical_info_edit.html index f46d235..1a8e67c 100644 --- a/users/templates/contractor_financical_info_edit.html +++ b/users/templates/contractor_financical_info_edit.html @@ -1,7 +1,11 @@ {% extends 'partials/base.html' %} + {% load staticfiles %} + + {% block content %} {% include 'partials/header.html' %} +
@@ -68,123 +72,124 @@
-
{% csrf_token %} -
- {{ form.errors }} -
-
-
Имя, Фамилия, Отчество:
-
Дата рождения:
-
Телефон
-
-
-
- -
-
- -
-
- -
-
-
-
Резиденство:
-
-
- - {% for residency in form.residency %} + {% csrf_token %} +
+ {{ form.errors }} +
+
+
Имя, Фамилия, Отчество:
+
Дата рождения:
+
Телефон
+
+
+
+ +
+
+ +
- -

- {{ residency.choice_label }} -

+ +
- {% endfor %} -
-
-
Юридический статус:
-
-
- {% for lstatus in form.legal_status %} -
- -

- {{ lstatus.choice_label }} -

-
- {% endfor %} -
-
-
Серия и номер паспорта:
-
Кем выдан:
-
-
-
- +
+
Резиденство:
+
+
+ + {% for residency in form.residency %} +
+ +

+ {{ residency.choice_label }} +

+
+ {% endfor %}
-
- +
+
Юридический статус:
-
- +
+ {% for lstatus in form.legal_status %} +
+ +

+ {{ lstatus.choice_label }} +

+
+ {% endfor %}
-
-
-
Код подразделения:
-
Кем выдан:
-
-
-
- +
+
Серия и номер паспорта:
+
Кем выдан:
-
- +
+
+ +
+
+ +
+
+ +
-
-
-
Дата выдачи:
-
Почтовый адрес:
-
-
-
- +
+
Код подразделения:
+
Кем выдан:
-
-{# #} +
+
+ +
+
+ +
-
-
-
ИНН:
-
Яндекс.Деньги:
-
Номер карты
-
Скан-копии страниц паспорта
-
-
-
- +
+
Дата выдачи:
+
Почтовый адрес:
-
- +
+
+ +
+
+{# #} +
-
- +
+
ИНН:
+
Яндекс.Деньги:
+
Номер карты
+
Скан-копии страниц паспорта
-
- {{ form.passport_scan.value }} -
- - -

Прикрепить файл

+
+
+ +
+
+ +
+
+ +
+
+ {{ form.passport_scan.value }} +
+ + +

Прикрепить файл

+
-
-
-
- + + {% include 'partials/footer.html' %}
diff --git a/users/templates/contractor_profile.html b/users/templates/contractor_profile.html index 547575f..40109d3 100644 --- a/users/templates/contractor_profile.html +++ b/users/templates/contractor_profile.html @@ -2,6 +2,8 @@ {% load staticfiles %} {% load thumbnail %} + + {% block content %} {% include 'partials/header.html' %} diff --git a/users/templates/contractor_profile_edit.html b/users/templates/contractor_profile_edit.html index 42413cf..2d733c7 100644 --- a/users/templates/contractor_profile_edit.html +++ b/users/templates/contractor_profile_edit.html @@ -1,8 +1,12 @@ {% extends 'partials/base.html' %} + {% load staticfiles %} {% load common_tags %} + + {% block content %} -{% include 'partials/header.html' %} + {% include 'partials/header.html' %} +
{% csrf_token %} @@ -127,6 +131,7 @@
{% endblock %} + {% block js_block %}