change sub location id as string
This commit is contained in:
18
rog/migrations/0032_alter_location_sub_loc_id.py
Normal file
18
rog/migrations/0032_alter_location_sub_loc_id.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.2.9 on 2022-09-07 09:22
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('rog', '0031_auto_20220831_2244'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='location',
|
||||||
|
name='sub_loc_id',
|
||||||
|
field=models.CharField(blank=True, max_length=2048, null=True, verbose_name='Sub location id'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@ -232,7 +232,7 @@ class SystemSettings(models.Model):
|
|||||||
|
|
||||||
class Location(models.Model):
|
class Location(models.Model):
|
||||||
location_id=models.IntegerField(_('Location id'), blank=True, null=True)
|
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)
|
cp=models.FloatField(_('Check Point'), blank=False, null=True, default=0)
|
||||||
location_name=models.CharField(_('Location Name'), max_length=2048, default="--- 場所をお願いします --")
|
location_name=models.CharField(_('Location Name'), max_length=2048, default="--- 場所をお願いします --")
|
||||||
category=models.CharField(_('Category'), max_length=2048, blank=True, null=True)
|
category=models.CharField(_('Category'), max_length=2048, blank=True, null=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user