9 lines
269 B
Python
9 lines
269 B
Python
|
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
|