From 7c3a5cf0927f1cef34196b500fa962b4b8f4b3c9 Mon Sep 17 00:00:00 2001 From: Sabron Date: Tue, 12 Nov 2024 09:56:36 +0700 Subject: [PATCH] update : 12.11.2024 9:56:36,65 --- .../gto/migrations/0007_equipment_full_name.py | 18 ++++++++++++++++++ apps/gto/models/model_equipment.py | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 apps/gto/migrations/0007_equipment_full_name.py diff --git a/apps/gto/migrations/0007_equipment_full_name.py b/apps/gto/migrations/0007_equipment_full_name.py new file mode 100644 index 0000000..352d0f2 --- /dev/null +++ b/apps/gto/migrations/0007_equipment_full_name.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.16 on 2024-11-12 09:56 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('gto', '0006_auto_20241001_1654'), + ] + + operations = [ + migrations.AddField( + model_name='equipment', + name='full_name', + field=models.CharField(default=' ', max_length=80, verbose_name='Полное наименование объекта'), + ), + ] diff --git a/apps/gto/models/model_equipment.py b/apps/gto/models/model_equipment.py index 5269c02..7b381a9 100644 --- a/apps/gto/models/model_equipment.py +++ b/apps/gto/models/model_equipment.py @@ -13,6 +13,10 @@ class Equipment(models.Model): # Оборудование help_text="", default=" ", verbose_name="Название объекта") + full_name = models.CharField(max_length=80, + help_text="", + default=" ", + verbose_name="Полное наименование объекта") model = models.CharField(max_length=80, help_text="", default=" ",