aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/generics.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/generics.py')
-rw-r--r--rest_framework/generics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/generics.py b/rest_framework/generics.py
index 9e931917..34e32da3 100644
--- a/rest_framework/generics.py
+++ b/rest_framework/generics.py
@@ -48,7 +48,7 @@ class GenericAPIView(views.APIView):
return serializer_class
def get_serializer(self, instance=None, data=None,
- files=None, partial=False):
+ files=None, partial=False, many=False):
"""
Return the serializer instance that should be used for validating and
deserializing input, and for serializing output.
@@ -56,7 +56,7 @@ class GenericAPIView(views.APIView):
serializer_class = self.get_serializer_class()
context = self.get_serializer_context()
return serializer_class(instance, data=data, files=files,
- partial=partial, context=context)
+ many=many, partial=partial, context=context)
class MultipleObjectAPIView(MultipleObjectMixin, GenericAPIView):