Ticket #4174: 4174_newforms_admin_prepopulated_from.diff
File 4174_newforms_admin_prepopulated_from.diff, 570 bytes (added by , 17 years ago) |
---|
-
django/db/models/fields/__init__.py
843 843 def get_manipulator_field_objs(self): 844 844 return [oldforms.PositiveSmallIntegerField] 845 845 846 class SlugField( Field):846 class SlugField(CharField): 847 847 def __init__(self, *args, **kwargs): 848 848 kwargs['maxlength'] = kwargs.get('maxlength', 50) 849 849 kwargs.setdefault('validator_list', []).append(validators.isSlug)