#2135: [patch] Slug pre-population should be possible in the server
---------------------------------+------------------------------------------
   Reporter:  greg[at]abbas.org  |                Owner:  adrian                
     Status:  closed             |            Component:  Core framework        
    Version:                     |           Resolution:  wontfix               
   Keywords:  slug unique        |                Stage:  Design decision needed
  Has_patch:  1                  |           Needs_docs:  0                     
Needs_tests:  0                  |   Needs_better_patch:  1                     
---------------------------------+------------------------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 A lot of the comments here seem to be based on large misunderstandings of
 what the slug field population is designed for. It provides a
 ''suggested'' slug that the user can edit if they wish to. Checking that
 it is unique in the database is a validation-time function, not something
 the edit field is going to do by default (since the user might still edit
 it up to the moment they submit the form)
 
 If you don't want the user editing the slug field, don't display it on the
 admin form and use the Python slugify() function (or your own replacement)
 to do what you want. This is entirely up to the developer; it's not a
 policy that Django is going to require, because it depends on an
 application's slug-creation policy.
 
 There is also no requirement for the slugify filter to be the same as the
 Javascript (this isn't possible in practice, since we can do much more
 w.r.t. Unicode handling on the Python side).
 
 So, thanks for the patches, but I don't think we should include this. It
 doesn't add anything that isn't already possible and only adds extra
 "policy" that is not always going to suit others' use-cases.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2135#comment:11>
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