Algo-Phantoms-Backend icon indicating copy to clipboard operation
Algo-Phantoms-Backend copied to clipboard

Added Pagination for quiz app

Open hasanmdarif opened this issue 3 years ago • 3 comments

Added pagination.py for quiz app

Closes: #29

I have added pagination for quiz app. used PageNumberPagination. You can type http://127.0.0.1:8000/quiz/question/array/?page_size=1 to see the changes. page_size can be any number you desire.

Please check the code and let me know if i need to improve it.

PS:- Kindly add relevant lebels for GSSOC'21 on issue #29

hasanmdarif avatar Mar 14 '21 17:03 hasanmdarif

Hey, You've done good work but writing such long code for something that can be done in 2-4 lines is not a good practice. I would recommend you to go through this and remove unwanted code - https://github.com/diyajaiswal11/Grocery-Task/blob/main/GroceryTask/groceries/views.py

Hey Diya please check the changes i have made. Let me know if it is matching your interest or not.

GitHub
Contribute to diyajaiswal11/Grocery-Task development by creating an account on GitHub.

hasanmdarif avatar Mar 15 '21 13:03 hasanmdarif

Hey @diyajaiswal11 please review this pr:)

hasanmdarif avatar Apr 02 '21 06:04 hasanmdarif

@hasanmdarif This can be done with just around 7-10 lines of code. You should not make changes to other files. Put up a new PR only with the code that is required for this functionality

Pushpit07 avatar Apr 23 '21 05:04 Pushpit07