Changed the links attribute of Pagination to a pseudo attribute that is calculated on request.

This commit is contained in:
2020-07-07 22:49:37 +08:00
parent 19ac9d3200
commit e9509c9bac
2 changed files with 89 additions and 83 deletions

View File

@ -201,5 +201,6 @@ ORDER BY
self.kwargs["subject_code"] + "%",
self.kwargs["subject_code"] + "%"])
self.pagination = Pagination(
self.request, records, self.page_no, self.page_size, True)
self.request.get_full_path(), records,
self.page_no, self.page_size, True)
return self.pagination.records