diff options
| author | Tom Christie | 2014-08-29 12:54:03 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-08-29 12:54:03 +0100 | 
| commit | b552b62540e5144272c9c13c28f120ffe5fcbe45 (patch) | |
| tree | 7e61b425aaa8bfb5f7b7b53500ace22247e284e7 /rest_framework/generics.py | |
| parent | f87d32558eb3b36f14a798ec48e4943d25380b92 (diff) | |
| download | django-rest-framework-b552b62540e5144272c9c13c28f120ffe5fcbe45.tar.bz2 | |
`get_paginate_by` no longer takes optional `.queryset`
Diffstat (limited to 'rest_framework/generics.py')
| -rw-r--r-- | rest_framework/generics.py | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/rest_framework/generics.py b/rest_framework/generics.py index e6cbfca9..40c49844 100644 --- a/rest_framework/generics.py +++ b/rest_framework/generics.py @@ -158,7 +158,7 @@ class GenericAPIView(views.APIView):      # The following methods provide default implementations      # that you may want to override for more complex cases. -    def get_paginate_by(self, queryset=None): +    def get_paginate_by(self):          """          Return the size of pages to use with pagination. @@ -167,11 +167,6 @@ class GenericAPIView(views.APIView):          Otherwise defaults to using `self.paginate_by`.          """ -        if queryset is not None: -            warnings.warn('The `queryset` parameter to `get_paginate_by()` ' -                          'is deprecated.', -                          DeprecationWarning, stacklevel=2) -          if self.paginate_by_param:              try:                  return strict_positive_int( | 
