Ticket #6212: 6212.diff
File 6212.diff, 656 bytes (added by , 17 years ago) |
---|
-
django/db/models/fields/__init__.py
906 906 def get_manipulator_field_objs(self): 907 907 return [oldforms.NullBooleanField] 908 908 909 def formfield(self, **kwargs): 910 defaults = {'form_class': forms.NullBooleanField} 911 defaults.update(kwargs) 912 return super(NullBooleanField, self).formfield(**defaults) 913 909 914 class PhoneNumberField(IntegerField): 910 915 def get_manipulator_field_objs(self): 911 916 return [oldforms.PhoneNumberField]