From bad8f3dbcd1b2ced4d20a6cca93f211420287829 Mon Sep 17 00:00:00 2001 From: dkfla Date: Tue, 30 Jul 2024 19:46:46 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20latitude=20model=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ant_latitude_alter_restaurant_longitude.py | 22 +++++++++++++++++++ restaurants/models.py | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 restaurants/migrations/0002_alter_restaurant_latitude_alter_restaurant_longitude.py diff --git a/restaurants/migrations/0002_alter_restaurant_latitude_alter_restaurant_longitude.py b/restaurants/migrations/0002_alter_restaurant_latitude_alter_restaurant_longitude.py new file mode 100644 index 0000000..9fd9f37 --- /dev/null +++ b/restaurants/migrations/0002_alter_restaurant_latitude_alter_restaurant_longitude.py @@ -0,0 +1,22 @@ +# Generated by Django 4.2.14 on 2024-07-30 10:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("restaurants", "0001_initial"), + ] + + operations = [ + migrations.AlterField( + model_name="restaurant", + name="latitude", + field=models.DecimalField(decimal_places=8, max_digits=11), + ), + migrations.AlterField( + model_name="restaurant", + name="longitude", + field=models.DecimalField(decimal_places=8, max_digits=11), + ), + ] diff --git a/restaurants/models.py b/restaurants/models.py index 901401b..8524d60 100644 --- a/restaurants/models.py +++ b/restaurants/models.py @@ -15,5 +15,5 @@ class Restaurant(models.Model): max_digits=5, decimal_places=2, null=True, blank=True ) address = models.CharField(max_length=255) - latitude = models.DecimalField(max_digits=10, decimal_places=7) - longitude = models.DecimalField(max_digits=10, decimal_places=7) + latitude = models.DecimalField(max_digits=11, decimal_places=8) + longitude = models.DecimalField(max_digits=11, decimal_places=8)