Ticket #4174: 4174_newforms_admin_prepopulated_from.diff

File 4174_newforms_admin_prepopulated_from.diff, 570 bytes (added by Brian Rosner <brosner@…>, 17 years ago)

patch to fix #4174

  • django/db/models/fields/__init__.py

     
    843843    def get_manipulator_field_objs(self):
    844844        return [oldforms.PositiveSmallIntegerField]
    845845
    846 class SlugField(Field):
     846class SlugField(CharField):
    847847    def __init__(self, *args, **kwargs):
    848848        kwargs['maxlength'] = kwargs.get('maxlength', 50)
    849849        kwargs.setdefault('validator_list', []).append(validators.isSlug)
Back to Top