fix faulty migrations
This commit is contained in:
parent
c4637eed7a
commit
9826aea0c1
|
@ -129,7 +129,7 @@ class Migration(migrations.Migration):
|
|||
),
|
||||
migrations.AlterField(
|
||||
model_name='apartament',
|
||||
name='isСhild',
|
||||
name='isChild',
|
||||
field=models.BooleanField(verbose_name='Можно с детьми'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
# Generated by Django 4.2.1 on 2023-05-12 11:50
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('pairent_app', '0004_apartament_lastprice'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='User',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('favorites_apartaments', models.CharField(max_length=100, verbose_name='Избранные квартиры')),
|
||||
('apartaments_for_comparison', models.CharField(max_length=100, verbose_name='Квартиры для сравнения')),
|
||||
('psych_test_result', models.IntegerField(null=True, validators=[django.core.validators.MaxValueValidator(100)], verbose_name='Результат психологического теста')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Пользователь',
|
||||
'verbose_name_plural': 'Пользователи',
|
||||
},
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='apartament',
|
||||
name='isChild',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='apartament',
|
||||
name='isChild',
|
||||
field=models.BooleanField(verbose_name='Можно с детьми'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue