from map_service.models import LkState
from map_service.models import SpatialObjects
from rest_framework_mongoengine import serializers


class LkStateSerializer(serializers.DocumentSerializer):
    class Meta:
        model = LkState
        fields = '__all__'

class SpatialObjectsSerializer(serializers.DocumentSerializer):
    class Meta:
        model = SpatialObjects
        fields = '__all__'

from map_service.models import LkState
from map_service.models import SpatialObjects
from rest_framework_mongoengine import serializers


class LkStateSerializer(serializers.DocumentSerializer):
    class Meta:
        model = LkState


class SpatialObjectsSerializer(serializers.DocumentSerializer):
    class Meta:
        model = SpatialObjects
        fields = '__all__'

--- 
+++ 
@@ -6,7 +6,7 @@
 class LkStateSerializer(serializers.DocumentSerializer):
     class Meta:
         model = LkState
-
+        fields = '__all__'
 
 class SpatialObjectsSerializer(serializers.DocumentSerializer):
     class Meta:
Fix Compatibility issue with django 1.8+
