--
Ticket URL: <https://code.djangoproject.com/ticket/33794>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Thanks for the report. Does calling `decode()` in `__str__()` works for
you?
{{{#!diff
diff --git a/django/contrib/gis/db/backends/postgis/adapter.py
b/django/contrib/gis/db/backends/postgis/adapter.py
index 0e02427811..20b0327d5c 100644
--- a/django/contrib/gis/db/backends/postgis/adapter.py
+++ b/django/contrib/gis/db/backends/postgis/adapter.py
@@ -42,7 +42,7 @@ class PostGISAdapter:
return hash(self.ewkb)
def __str__(self):
- return self.getquoted()
+ return self.getquoted().decode()
@classmethod
def _fix_polygon(cls, poly):
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33794#comment:1>
Comment (by Mariusz Felisiak):
and great timing, today is the beta1 release day :D
--
Ticket URL: <https://code.djangoproject.com/ticket/33794#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/15785 PR]
While writing the report, I hoped you didn't start the release :-)
--
Ticket URL: <https://code.djangoproject.com/ticket/33794#comment:3>
* stage: Accepted => Ready for checkin
Comment:
Replying to [comment:3 Claude Paroz]:
> [https://github.com/django/django/pull/15785 PR]
>
> While writing the report, I hoped you didn't start the release :-)
We've used the handbreak :)
--
Ticket URL: <https://code.djangoproject.com/ticket/33794#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"de74a74b4b889c986cabab837bb03e2113880afe" de74a74]:
{{{
#!CommitTicketReference repository=""
revision="de74a74b4b889c986cabab837bb03e2113880afe"
Fixed #33794 -- Fixed string-casting of GIS queries on PostgreSQL.
Regression in 64c3f049ea3bcb1c82f35ae09f1dd5349a826a5c.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33794#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"42e4b0e608fb439ca98756546bbda1152f64c8b1" 42e4b0e6]:
{{{
#!CommitTicketReference repository=""
revision="42e4b0e608fb439ca98756546bbda1152f64c8b1"
[4.1.x] Fixed #33794 -- Fixed string-casting of GIS queries on PostgreSQL.
Regression in 64c3f049ea3bcb1c82f35ae09f1dd5349a826a5c.
Backport of de74a74b4b889c986cabab837bb03e2113880afe from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33794#comment:6>