From f17be54d818d0c297fae0f3eb22f53164526f003 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Fri, 9 Sep 2022 18:54:00 +0530 Subject: [PATCH] update to sublocation --- .../0033_alter_templocation_sub_loc_id.py | 18 ++++++++++++++++++ rog/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 rog/migrations/0033_alter_templocation_sub_loc_id.py diff --git a/rog/migrations/0033_alter_templocation_sub_loc_id.py b/rog/migrations/0033_alter_templocation_sub_loc_id.py new file mode 100644 index 0000000..00fadf7 --- /dev/null +++ b/rog/migrations/0033_alter_templocation_sub_loc_id.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.9 on 2022-09-09 13:18 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('rog', '0032_alter_location_sub_loc_id'), + ] + + operations = [ + migrations.AlterField( + model_name='templocation', + name='sub_loc_id', + field=models.CharField(blank=True, max_length=2048, null=True, verbose_name='Sub location id'), + ), + ] diff --git a/rog/models.py b/rog/models.py index 0029a1c..5449e1f 100644 --- a/rog/models.py +++ b/rog/models.py @@ -285,7 +285,7 @@ class Location(models.Model): class templocation(models.Model): location_id=models.IntegerField(_('Location id'), blank=True, null=True) - sub_loc_id=models.IntegerField(_('Sub location id'), blank=True, null=True) + sub_loc_id=models.CharField(_('Sub location id'), max_length=2048, blank=True, null=True) cp=models.FloatField(_('Check Point'), blank=False, null=True, default=0) location_name=models.CharField(_('Location Name'), max_length=2048, default="--- 場所をお願いします --") category=models.CharField(_('Category'), max_length=2048, blank=True, null=True)