You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to that it is not possible to filter by relations (FK or M2M). I suspect that the SQL statement is not being built well for these cases. In this case I am using a model called Station with a M2M field called aliases (which I am trying to use to filter by).
Error: missing FROM-clause entry for table when running intersect
missing FROM-clause entry for table "station_aliases"
LINE 6: ...26044311186, 0 -66.51326044311186))'), 4326)) AND "station_a...
It happens in File "/lib/python3.8/site-packages/rest_framework_mvt/managers.py", line 48, in intersect cursor.execute(query, [str(bbox), str(bbox)] + parameters + [limit, offset])
Version Number
djangorestframework-mvt 0.2.5
Python 3.8
The text was updated successfully, but these errors were encountered:
Problem description
It seems to that it is not possible to filter by relations (FK or M2M). I suspect that the SQL statement is not being built well for these cases. In this case I am using a model called
Station
with a M2M field calledaliases
(which I am trying to use to filter by).Error: missing FROM-clause entry for table when running
intersect
It happens in
File "/lib/python3.8/site-packages/rest_framework_mvt/managers.py", line 48, in intersect cursor.execute(query, [str(bbox), str(bbox)] + parameters + [limit, offset])
Version Number
The text was updated successfully, but these errors were encountered: