id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 15307 slugify should take an optional max length Jeremy Dunck nobody "A SlugField has a max_length of 50 by default, but the slugify template filter does not easily truncate. Perhaps altering to something like this would be helpful: {{{ SLUG_RE = re.compile('\-[^\-]*$') def slugify_max(text, max_length=50): slug = slugify(text) last_len = len(slug) while len(slug) > max_length: slug = SLUG_RE.sub('', slug) # avoid infinite loop if len(slug) == last_len: break last_len = len(slug) slug = slug[:max_length] #hack off end if unable to nicely crop it. return slug }}} Design decision needed because I'm not sure folks will agree this is needed in core." New feature closed Template system 1.2 Normal wontfix Design decision needed 0 0 0 0 0 0