From 85647bccc19947646f5b382808415acf623e964d Mon Sep 17 00:00:00 2001 From: Yassin Bahri <131185064+yassinbahri@users.noreply.github.com> Date: Fri, 4 Sep 2026 22:36:21 +0200 Subject: [PATCH 1/2] Fixed #37321 -- Documented BaseSpatialField.srid=-1 behavior. --- docs/ref/contrib/gis/model-api.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ref/contrib/gis/model-api.txt b/docs/ref/contrib/gis/model-api.txt index bf16eb1e157a..421d5f4d3740 100644 --- a/docs/ref/contrib/gis/model-api.txt +++ b/docs/ref/contrib/gis/model-api.txt @@ -112,6 +112,10 @@ Sets the SRID [#fnogcsrid]_ (Spatial Reference System Identity) of the geometry field to the given value. Defaults to 4326 (also known as `WGS84`__, units are in degrees of longitude and latitude). +Setting the SRID to ``-1`` disables automatic SRID transformations when saving +geometries. The assigned geometry's SRID is set to ``-1``, discarding any +explicit SRID it had. + __ https://en.wikipedia.org/wiki/WGS84 .. _selecting-an-srid: From dd6f6b1531984823e3dc56740dfa93f3ceb09357 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 20 Sep 2026 10:15:17 -0400 Subject: [PATCH 2/2] Corrected output of Prefetch.to_attr example. Just like ba7a420012799b26ec9e969d0276d2ccee93c1f5. Regressed in d6cca8b904de144946453aea93dd627c09abfca9. --- docs/ref/models/querysets.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index fe97a2ea79f5..cdab837328cc 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -4344,7 +4344,7 @@ attribute: >>> prefetch = Prefetch("choice_set", queryset=voted_choices, to_attr="voted_choices") >>> Question.objects.prefetch_related(prefetch).get().voted_choices - ]> + [] >>> Question.objects.prefetch_related(prefetch).get().choice_set.all() , , ]>