From f387930dee8aba80b694073b7f523fece1632fed Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 27 Apr 2025 00:21:58 +0200 Subject: [PATCH] feat: Allow longer placids with no restrictions on int --- .../migrations/0044_alter_location_place_id.py | 18 ++++++++++++++++++ src/fellchensammlung/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/fellchensammlung/migrations/0044_alter_location_place_id.py diff --git a/src/fellchensammlung/migrations/0044_alter_location_place_id.py b/src/fellchensammlung/migrations/0044_alter_location_place_id.py new file mode 100644 index 0000000..6aea00e --- /dev/null +++ b/src/fellchensammlung/migrations/0044_alter_location_place_id.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.4 on 2025-04-26 22:21 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fellchensammlung', '0043_rename_country_location_countrycode'), + ] + + operations = [ + migrations.AlterField( + model_name='location', + name='place_id', + field=models.CharField(max_length=200), + ), + ] diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 1edbf2f..94e1457 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -39,7 +39,7 @@ class Language(models.Model): class Location(models.Model): - place_id = models.IntegerField() # OSM id + place_id = models.CharField(max_length=200) # OSM id latitude = models.FloatField() longitude = models.FloatField() name = models.CharField(max_length=2000)