summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-05-21 12:35:36 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-05-21 13:46:56 (GMT)
commit92efdda84b493feeccfab635708a7909aeb5de74 (patch)
tree67526d53ea43c3a75effdbdfb4fa2bc526decbed
parentd5770b18d75375401fa3e954b0d656ef391c1731 (diff)
downloadcombo-92efdda84b493feeccfab635708a7909aeb5de74.zip
combo-92efdda84b493feeccfab635708a7909aeb5de74.tar.gz
combo-92efdda84b493feeccfab635708a7909aeb5de74.tar.bz2
maps: limit layer slugs to 50 characters (#33311)v2.15
-rw-r--r--combo/apps/maps/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combo/apps/maps/models.py b/combo/apps/maps/models.py
index 9a54c79..b3f9d66 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: