From 968f3f96373e028f1486d135e38331fcd0e3a0ca Mon Sep 17 00:00:00 2001 From: Nilesh Kumar Pahari Date: Tue, 23 Dec 2025 03:53:18 +0530 Subject: 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. --- tests/model_fields/models.py | 2 -- 1 file changed, 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: -- cgit v1.3