Ticket #5622: 5622.patch

File 5622.patch, 524 bytes (added by Thomas Kerpe, 17 years ago)
  • django/db/models/fields/__init__.py

     
    888888        defaults.update(kwargs)
    889889        return super(IPAddressField, self).formfield(**defaults)
    890890
     891    def get_db_prep_save(self, value):
     892        return value or None
     893
    891894class NullBooleanField(Field):
    892895    empty_strings_allowed = False
    893896    def __init__(self, *args, **kwargs):
Back to Top