[Answered ]-Trouble converting POSTGIS query to GeoDjango query

2👍

Your syntax is not correct, you should switch ‘poly’ and ‘mpoint’ like this:

nodes = Nodes.objects.filter(mpoint__contains=poly)

👤jcs

Leave a comment