diff options
| author | Tom Christie | 2013-02-06 13:04:11 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-02-06 13:04:11 +0000 | 
| commit | 55fd64663167ce4447565ecba7170f8eccc1fdf0 (patch) | |
| tree | a57fb880948e6ddf6b191638fe17b2d50b407a9f /rest_framework/generics.py | |
| parent | cc2ec2bbf0aee53d360a81cf338361feca1e8f80 (diff) | |
| download | django-rest-framework-55fd64663167ce4447565ecba7170f8eccc1fdf0.tar.bz2 | |
Set many explicitly from mixins. Refs #564.
Diffstat (limited to 'rest_framework/generics.py')
| -rw-r--r-- | rest_framework/generics.py | 4 | 
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): | 
