0001-maps-limit-layer-slugs-to-50-characters-33311.patch
combo/apps/maps/models.py | ||
---|---|---|
113 | 113 | |
114 | 114 |
def save(self, *args, **kwargs): |
115 | 115 |
if not self.slug: |
116 |
base_slug = slugify(self.label) |
|
116 |
base_slug = slugify(self.label)[:45]
|
|
117 | 117 |
slug = base_slug |
118 | 118 |
i = 1 |
119 | 119 |
while True: |
120 |
- |