Cannot set MODEL_NAME SpatialProxy (POLYGON) with value of type: <class 'django.contrib.gis.geos.polygon.Polygon'>
问题 When I try an API call to the url of one my models I face the following: Cannot set Allotment SpatialProxy (POLYGON) with value of type: <class 'django.contrib.gis.geos.polygon.Polygon'> I check my model's definition and data type in PGadmin. full log Traceback: File "/home/user/MyProjects/forest-venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner 35. response = get_response(request) File "/home/user/MyProjects/forest-venv/lib/python3.5/site-packages/django/core