Refs #31369 -- Improved hint message in NullBooleanField's deprecation warning.

This commit is contained in:
Paul Brown 2023-05-02 18:42:11 +00:00 committed by GitHub
parent 506f93f0c3
commit 3b62d8c83e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ class DeprecatedFieldsTests(SimpleTestCase):
checks.Error(
"NullBooleanField is removed except for support in historical "
"migrations.",
hint="Use BooleanField(null=True) instead.",
hint="Use BooleanField(null=True, blank=True) instead.",
obj=NullBooleanFieldModel._meta.get_field("nb"),
id="fields.E903",
),