Skip to content
Advertisement

Tag: django-pagination

Sorting and paginating object at the same time in django; after paginating the sort gets reset

If I have applied the sorting to my wallpapers and after that if I try to paginate the sorting gets reset. like if I have sorted wallpapers according to pub date in ascending order and after pagination, it gets back to normal. view Pagination code Answer The reason this happens is because you “drop” the URL parameters regarding sorting and

Advertisement