Author: jkocherhans
Date: 2007-09-06 22:11:31 -0500 (Thu, 06 Sep 2007)
New Revision: 6056

Modified:
   django/branches/newforms-admin/django/db/models/fields/__init__.py
Log:
Made SlugField subclass CharField.


Modified: django/branches/newforms-admin/django/db/models/fields/__init__.py
===================================================================
--- django/branches/newforms-admin/django/db/models/fields/__init__.py  
2007-09-07 02:45:32 UTC (rev 6055)
+++ django/branches/newforms-admin/django/db/models/fields/__init__.py  
2007-09-07 03:11:31 UTC (rev 6056)
@@ -909,7 +909,7 @@
     def get_manipulator_field_objs(self):
         return [oldforms.PositiveSmallIntegerField]
 
-class SlugField(Field):
+class SlugField(CharField):
     def __init__(self, *args, **kwargs):
         kwargs['max_length'] = kwargs.get('max_length', 50)
         kwargs.setdefault('validator_list', []).append(validators.isSlug)


--~--~---------~--~----~------------~-------~--~----~
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