From 0ffd9a0164bf5bc72f1d68c7d92facee3bec1612 Mon Sep 17 00:00:00 2001 From: zorn Date: Sat, 1 Feb 2025 16:38:04 +1000 Subject: [PATCH] 0004_alter_roomdiscrepancy_discrepancy_type mig --- ...4_alter_roomdiscrepancy_discrepancy_type.py | 18 ++++++++++++++++++ antifroud/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 antifroud/migrations/0004_alter_roomdiscrepancy_discrepancy_type.py diff --git a/antifroud/migrations/0004_alter_roomdiscrepancy_discrepancy_type.py b/antifroud/migrations/0004_alter_roomdiscrepancy_discrepancy_type.py new file mode 100644 index 00000000..8f3c2879 --- /dev/null +++ b/antifroud/migrations/0004_alter_roomdiscrepancy_discrepancy_type.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.4 on 2025-02-01 06:37 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('antifroud', '0003_alter_roomdiscrepancy_booking_id_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='roomdiscrepancy', + name='discrepancy_type', + field=models.CharField(choices=[('early', 'Раннее заселение'), ('late', 'Позднее заселение'), ('missed', 'Неявка'), ('no_booking', 'Без брони')], max_length=50, verbose_name='Тип несоответствия'), + ), + ] diff --git a/antifroud/models.py b/antifroud/models.py index e7f9eb38..5429f63a 100644 --- a/antifroud/models.py +++ b/antifroud/models.py @@ -112,7 +112,7 @@ class RoomDiscrepancy(models.Model): check_in_date_actual = models.DateField(null=True, verbose_name="Фактическая дата заселения") discrepancy_type = models.CharField( max_length=50, - choices=[("early", "Раннее заселение"), ("late", "Позднее заселение"), ("missed", "Неявка")], + choices=[("early", "Раннее заселение"), ("late", "Позднее заселение"), ("missed", "Неявка"), ("no_booking", "Без брони")], verbose_name="Тип несоответствия" ) created_at = models.DateTimeField(auto_now_add=True, verbose_name="Дата создания")