Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made SlugField subclass CharField.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a3ecc33ed2a5eabd5cb4534555364f3f0d9ca931 1 parent 016f84b
@jkocherhans jkocherhans authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/fields/__init__.py
View
2  django/db/models/fields/__init__.py
@@ -909,7 +909,7 @@ class PositiveSmallIntegerField(IntegerField):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.