save_object() is not support in rest_framework 3.x
diff --git a/xos/tools/apigen/api.template.py b/xos/tools/apigen/api.template.py
index de733e8..d0852db 100644
--- a/xos/tools/apigen/api.template.py
+++ b/xos/tools/apigen/api.template.py
@@ -68,7 +68,8 @@
# Based on serializers.py
class XOSModelSerializer(serializers.ModelSerializer):
- def save_object(self, obj, **kwargs):
+ # TODO: Rest Framework 3.x doesn't support save_object()
+ def NEED_TO_UPDATE_save_object(self, obj, **kwargs):
""" rest_framework can't deal with ManyToMany relations that have a
through table. In xos, most of the through tables we have
diff --git a/xos/xos/hpcapi.py b/xos/xos/hpcapi.py
index d444684..5b97ab9 100644
--- a/xos/xos/hpcapi.py
+++ b/xos/xos/hpcapi.py
@@ -123,7 +123,8 @@
# Based on serializers.py
class XOSModelSerializer(serializers.ModelSerializer):
- def save_object(self, obj, **kwargs):
+ # TODO: Rest Framework 3.x doesn't support save_object()
+ def NEED_TO_UPDATE_save_object(self, obj, **kwargs):
""" rest_framework can't deal with ManyToMany relations that have a
through table. In xos, most of the through tables we have
diff --git a/xos/xos/xosapi.py b/xos/xos/xosapi.py
index d0a9646..7673f28 100644
--- a/xos/xos/xosapi.py
+++ b/xos/xos/xosapi.py
@@ -605,7 +605,8 @@
# Based on serializers.py
class XOSModelSerializer(serializers.ModelSerializer):
- def save_object(self, obj, **kwargs):
+ # TODO: Rest Framework 3.x doesn't support save_object()
+ def NEED_TO_UPDATE_save_object(self, obj, **kwargs):
""" rest_framework can't deal with ManyToMany relations that have a
through table. In xos, most of the through tables we have