How can I flatten a foreignkey object with django-rest-framework-(gis)
问题 I have searched long and far for a solution that is up to date and specific to my problem but have yet not found a solution or a clear documentation on what I really need to do in order to flatten a relationship to become geojson compliant. This question is almost identical to mine, however the solutions or answers does not solve the problem and still produces invalid GeoJSON. django-rest-framework-gis related field Related Set serializer geo_field as PointField from another model - Django