disqus/django-bitfield — pull request #14 by eswenson1 (2012-03-20 17:45:09+00:00)
Title: Added support for null=True (and default=None) to BitField class.

Also added a test that checks creation and manipulation of model instances with a BitField that uses null=True and default=None.

Prior to this change, the following model definition would not work:

class Foo(models.Model):
flags=BitField(flags=FLAGS, null=True, default=None)

the resulting instances would ignore the default None, and have fields with BitHandler instances with all bits disabled.

Now, BitField fields can either be None (null) or BitHandler instances.