Ticket #6212: 6212.diff

File 6212.diff, 656 bytes (added by Chris Beaven, 17 years ago)
  • django/db/models/fields/__init__.py

     
    906906    def get_manipulator_field_objs(self):
    907907        return [oldforms.NullBooleanField]
    908908
     909    def formfield(self, **kwargs):
     910        defaults = {'form_class': forms.NullBooleanField}
     911        defaults.update(kwargs)
     912        return super(NullBooleanField, self).formfield(**defaults)
     913
    909914class PhoneNumberField(IntegerField):
    910915    def get_manipulator_field_objs(self):
    911916        return [oldforms.PhoneNumberField]
Back to Top