NullBooleanField in Django

  • Django 2.1 introduced null=True for BooleanField. Using NullBooleanField is now obsolete. So use, boolean_field = BooleanField(null=True) instead of boolean_field = NullBooleanField()

Comments

Popular posts from this blog

Advantages to using URLField() over TextField()

Forms in Django(bound, unbound, clean, is_valid, errors)