Opened 6 years ago

Closed 6 years ago

#11157 closed (wontfix)

slugify and admin javascript URLify function produce different strings

Reported by: keeperofkeys Owned by: nobody
Component: contrib.admin Version: 1.1-beta
Severity: Keywords: slug
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The javascript used by the admin to autogenerate slugs, URLify() in django.contrib.admin.media.js, removes certain words from the string before converting spaces to dashes. But django.template.defaultfilters.slugify leaves all words intact.

eg 'Working at home' -> 'working-home' using the admin js and 'working-at-home' using slugify.

Personally I prefer the latter but, whichever way round, the two filters ought to behave the same, as their functionality is meant to be interchangeable.

Change History (1)

comment:1 Changed 6 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

Where does it say their functionality is meant to be interchangeable? I specifically remember Malcolm saying they weren't when closing a similar issue a long time back.

Note: See TracTickets for help on using tickets.
Back to Top