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: