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)