fix: increase TileLayer.url_template size

fix #255
This commit is contained in:
Yohan Boniface 2024-04-17 11:19:31 +02:00
parent d0cc1cdd3d
commit d743ffeea0
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 5.0.2 on 2024-04-17 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("umap", "0019_migrate_internal_remote_datalayers"),
]
operations = [
migrations.AlterField(
model_name="tilelayer",
name="url_template",
field=models.CharField(
help_text="URL template using OSM tile format", max_length=400
),
),
]

View file

@ -92,7 +92,7 @@ class Licence(NamedModel):
class TileLayer(NamedModel):
url_template = models.CharField(
max_length=200, help_text=_("URL template using OSM tile format")
max_length=400, help_text=_("URL template using OSM tile format")
)
minZoom = models.IntegerField(default=0)
maxZoom = models.IntegerField(default=18)