From 92efdda84b493feeccfab635708a7909aeb5de74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 21 May 2019 14:35:36 +0200 Subject: [PATCH] maps: limit layer slugs to 50 characters (#33311) --- combo/apps/maps/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/maps/models.py b/combo/apps/maps/models.py index 9a54c795..b3f9d66d 100644 --- a/combo/apps/maps/models.py +++ b/combo/apps/maps/models.py @@ -113,7 +113,7 @@ class MapLayer(models.Model): def save(self, *args, **kwargs): if not self.slug: - base_slug = slugify(self.label) + base_slug = slugify(self.label)[:45] slug = base_slug i = 1 while True: