mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Add custom pagination size as an API parameter
This commit is contained in:
		
							
								
								
									
										5
									
								
								apps/api/pagination.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								apps/api/pagination.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
from rest_framework.pagination import PageNumberPagination
 | 
			
		||||
 | 
			
		||||
class CustomPagination(PageNumberPagination):
 | 
			
		||||
    page_size_query_param = 'page_size'
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user