aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/generics.py
diff options
context:
space:
mode:
authorTom Christie2012-11-05 10:53:20 +0000
committerTom Christie2012-11-05 10:53:20 +0000
commitb7b942c5991e677e7df621c00befb075d06edd61 (patch)
tree886d1657a3e8b014fef0cbae055d7f74cd46dbda /rest_framework/generics.py
parent5b397e50ddb999f85949a7359d0a26c3531c78a9 (diff)
downloaddjango-rest-framework-b7b942c5991e677e7df621c00befb075d06edd61.tar.bz2
Swap position of `instance` and `data` keyword arguments.
Diffstat (limited to 'rest_framework/generics.py')
-rw-r--r--rest_framework/generics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/generics.py b/rest_framework/generics.py
index 27540a57..7675d7f9 100644
--- a/rest_framework/generics.py
+++ b/rest_framework/generics.py
@@ -48,7 +48,7 @@ class GenericAPIView(views.APIView):
# TODO: add support for seperate serializer/deserializer
serializer_class = self.get_serializer_class()
context = self.get_serializer_context()
- return serializer_class(data, instance=instance, context=context)
+ return serializer_class(instance, data=data, context=context)
class MultipleObjectAPIView(MultipleObjectMixin, GenericAPIView):