quantifiedcode / python-anti-patterns

An open collection of Python anti-patterns and worst practices.
https://quantifiedcode.github.io/python-anti-patterns
Other
1.71k stars 249 forks source link

NullBooleanField is deprecated #152

Closed ML-Chen closed 3 years ago

ML-Chen commented 3 years ago

https://docs.quantifiedcode.com/python-anti-patterns/django/all/correctness/not_using_null_boolean_field.html says to use NullBooleanField rather than BooleanField(null=True). However, NullBooleanField is deprecated in Django 3.1.

ML-Chen commented 3 years ago

Ahh this is a duplicate of #112

adewes commented 3 years ago

Hey @ML-Chen, can you just open a PR for this? Would be happy to merge it and publish the new version.