Opened 13 years ago
Closed 13 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 by , 13 years ago
| Component: | Uncategorized → GIS |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Seems a duplicate of #14483