maps: limit layer slugs to 50 characters (#33311)
This commit is contained in:
parent
d5770b18d7
commit
92efdda84b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue