diff options
| author | Nilesh Kumar Pahari <nileshpahari@protonmail.com> | 2025-12-23 03:53:18 +0530 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-12-22 20:38:55 -0500 |
| commit | 968f3f96373e028f1486d135e38331fcd0e3a0ca (patch) | |
| tree | fd2cd3ce4e9a14c03afc92ad12c4e45e2b2fc85b /tests/model_fields | |
| parent | 84bae9c22a8ae7663c56cce5e0c611ea7c17fce1 (diff) | |
Refs #36806 -- Removed unnecessary null=True from GeneratedField in test models.
Test coverage is preserved because the tests only verify that generated
fields can produce NULL values when the source field is nullable.
This addresses system check warnings in the test suite after
6025eab3c509b4de922117e16866bbfe0ee99aa6.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/models.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 800a9ff5aa..cdf3c00080 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -636,7 +636,6 @@ class GeneratedModelNull(models.Model): expression=Lower("name"), output_field=models.CharField(max_length=10), db_persist=True, - null=True, ) class Meta: @@ -649,7 +648,6 @@ class GeneratedModelNullVirtual(models.Model): expression=Lower("name"), output_field=models.CharField(max_length=10), db_persist=False, - null=True, ) class Meta: |
