Derived from the flake8-django linter.
What it does#
Checks nullable string-based fields (like
in Django models.
Why is this bad?#
If a string-based field is nullable, then your model will have two possible
representations for "no data":
None and the empty string. This can lead to
confusion, as clients of the API have to check for both
None and the
empty string when trying to determine if the field has data.
The Django convention is to use the empty string in lieu of