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

Messages Framework in Django

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

Advantages to using URLField() over TextField()