GeoDjango serialize GeoJSON skipping 'id' field
问题 I've been using the Geo-Django GeoJSON serializer so that I can retrieve some objects from a PostGIS database and display them on an OpenLayers map. I'm obtaining the objects for display in the following way: gqs = self.model.objects.filter(point__distance_lte=(pnt, long(dist))) type(gqs) <class 'django.contrib.gis.db.models.query.GeoQuerySet'> and the Geo-Objects include all the model fields as expected: self.model._meta.get_fields() (<django.db.models.fields.AutoField: id>, <django.db