Projet

Général

Profil

0001-maps-limit-layer-slugs-to-50-characters-33311.patch

Frédéric Péters, 21 mai 2019 14:36

Télécharger (800 octets)

Voir les différences:

Subject: [PATCH] maps: limit layer slugs to 50 characters (#33311)

 combo/apps/maps/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
-