summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNilesh Kumar Pahari <nileshpahari@protonmail.com>2025-12-18 16:21:50 +0530
committerJacob Walls <jacobtylerwalls@gmail.com>2025-12-22 09:41:41 -0500
commit6025eab3c509b4de922117e16866bbfe0ee99aa6 (patch)
treed5f542be6eb02a9b12ab7fb3db93dcf54aa411de /docs
parentafaa527c437f95ab6f8860840d83480d4d15b099 (diff)
Fixed #36806 -- Added system check for null kwarg in GeneratedField.
The null argument has no effect on GeneratedField since the nullability of the column depends on the database and expression used.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt1
-rw-r--r--docs/ref/models/fields.txt3
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index 1e56464a6f..7250df692f 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -221,6 +221,7 @@ Model fields
``GeneratedField``\s.
* **fields.E223**: ``GeneratedField.output_field`` has errors: ...
* **fields.W224**: ``GeneratedField.output_field`` has warnings: ...
+* **fields.W225**: ``null`` has no effect on ``GeneratedField``.
* **fields.E900**: ``IPAddressField`` has been removed except for support in
historical migrations.
* **fields.W900**: ``IPAddressField`` has been deprecated. Support for it
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index a87d7261a7..fe4d764ab3 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1377,6 +1377,9 @@ materialized view.
backends that support it (SQLite, PostgreSQL, and Oracle) and marked as
deferred otherwise.
+:attr:`~Field.null` has no effect on ``GeneratedField`` since whether the
+column is nullable depends on the database and expression used.
+
``GenericIPAddressField``
-------------------------