from django.contrib.gis.serializers.geojson import Serializer as GeoJSONSerializer
class Serializer(GeoJSONSerializer):
def get_dump_object(self, obj):
data = super(Serializer, self).get_dump_object(obj)
data.update(id=obj.pk)
return data