mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	Fix bugfix note
This fixes a bugfix note that was added because of #1293, which pointed out that a change in a bugfix [1] broke backwards compatibility. The bugfix did not work as expected because a variable was quoted when it should not have been. This removes the quotes around the variable, which brings back the expected functionality.
This commit is contained in:
		
							parent
							
								
									2921455ea7
								
							
						
					
					
						commit
						0672d6de6e
					
				| 
						 | 
					@ -98,7 +98,7 @@ You can determine your currently installed version using `pip freeze`:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    class DisablePaginationMixin(object):
 | 
					    class DisablePaginationMixin(object):
 | 
				
			||||||
        def get_paginate_by(self, queryset=None):
 | 
					        def get_paginate_by(self, queryset=None):
 | 
				
			||||||
            if self.request.QUERY_PARAMS['self.paginate_by_param'] == '0':
 | 
					            if self.request.QUERY_PARAMS[self.paginate_by_param] == '0':
 | 
				
			||||||
                return None
 | 
					                return None
 | 
				
			||||||
            return super(DisablePaginationMixin, self).get_paginate_by(queryset)
 | 
					            return super(DisablePaginationMixin, self).get_paginate_by(queryset)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user