#8449: SlugField validator not working in new admin
-----------------------------+----------------------------------------------
 Reporter:  lingrlongr       |       Owner:  nobody    
   Status:  new              |   Milestone:  1.0 maybe 
Component:  Admin interface  |     Version:  SVN       
 Keywords:  slug             |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 The new admin app is allowing invalid characters in SlugFields.  I tested
 with this model:
 {{{
 # models.py
 from django.db import models

 class SlugModel(models.Model):
     slug = models.SlugField()
 }}}
 {{{
 # admin.py
 from django.contrib import admin
 from models import SlugModel

 class SlugModelAdmin(admin.ModelAdmin):
     pass

 admin.site.register(SlugModel, SlugModelAdmin)
 }}}

 In the admin, I tested the following:
  1. hello world
  2. slug%fest
  3. pirate&bay

 Each one is saved successfully. A validation error does not appear.

 Tested in SVN 8441.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8449>
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