From d2478f35870c723f35e94c4861bdc11344792091 Mon Sep 17 00:00:00 2001 From: Alexander-D-Karpov Date: Sun, 19 Feb 2023 09:44:01 +0300 Subject: [PATCH] fixed type --- .../migrations/0005_alter_primaryflat_risk.py | 21 +++++++++++++++++++ real_estate_search/search/models.py | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 real_estate_search/search/migrations/0005_alter_primaryflat_risk.py diff --git a/real_estate_search/search/migrations/0005_alter_primaryflat_risk.py b/real_estate_search/search/migrations/0005_alter_primaryflat_risk.py new file mode 100644 index 0000000..7139404 --- /dev/null +++ b/real_estate_search/search/migrations/0005_alter_primaryflat_risk.py @@ -0,0 +1,21 @@ +# Generated by Django 4.1.7 on 2023-02-19 02:41 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("search", "0004_delete_district_delete_street_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="primaryflat", + name="risk", + field=models.CharField( + choices=[("riskey", "Riskey"), ("good", "Good"), ("bad", "Bad")], + max_length=20, + ), + ), + ] diff --git a/real_estate_search/search/models.py b/real_estate_search/search/models.py index 73fc0b4..c43626f 100644 --- a/real_estate_search/search/models.py +++ b/real_estate_search/search/models.py @@ -46,7 +46,6 @@ class PrimaryFlat(models.Model): long = "long" class PrimaryFlatRisks(models.TextChoices): - risk = "risk" riskey = "riskey" good = "good" bad = "bad"