Opened 4 years ago

Closed 4 years ago

#19336 closed Bug (duplicate)

AttributeError when using GeoValuesListQuerySet as a subquery

Reported by: nosa_manuel Owned by: nobody
Component: GIS Version: 1.3
Severity: Normal Keywords: gis orm
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

At some point the compiler tries to compare the PostGIS adapter argument to a string and you get:

AttributeError: 'str' object has no attribute 'ewkb'

To reproduce:

pks = Point.objects.filter(point__intersects=some_geometry).values_list('object_id', flat=True))
objects = Object.objects.filter(pk__in=campus_pks)

Change History (1)

comment:1 Changed 4 years ago by Claude Paroz

Component: UncategorizedGIS
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: duplicate
Status: newclosed

Seems a duplicate of #14483

Note: See TracTickets for help on using tickets.
Back to Top