#8391: Admin slugify function's results defer from those of slugify template
filter
------------------------------------+---------------------------------------
          Reporter:  bjornkri       |         Owner:  nobody
            Status:  new            |     Milestone:        
         Component:  Uncategorized  |       Version:  SVN   
        Resolution:                 |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by julien):

  * summary:  Results of slugify in the admin interface differ from the one
              in shell. => Admin slugify function's results
              defer from those of slugify template filter

Comment:

 There's another difference between the two algorithms. In the admin, small
 words are stripped out by the javascript. For example, "This is a sentence
 with small words" returns "sentence-small-words". Whereas the template
 filter gives "this-is-a-sentence-with-small-words".

 Ideally, this word replacement should be configurable per-language. Maybe
 it already is, I've never tried.

 Another remark. In the admin, the javascript function is called 'URLify',
 so that's maybe for a good reason...

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8391#comment:7>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to