Fix the "Last" page link in the search results.

Review Request #2189 — Created July 16, 2021 and submitted

guest7526
Review Board
d875b0a...
yunshandi
Haystack removed a template context variable we used to grab the last
page number, for the "Last" page link in the paginator. This change
fixes that anchor.

It also fixes up the view code to use the modern version of `range()`,
to ensure consistency across Python 2.7 and 3.x.

Unit tests were added to ensure this doesn't regress in the future.

Testing Done:
Verified that search results render and include all the right links
on Python 2.x and 3.x.

Unit tests passed.

Reviewed at https://reviews.reviewboard.org/r/11675/


Description From Last Updated

arftarftarftarft

guest7526guest7526

dejemos import.DiffSetHistory

guest7526guest7526

test

guest7526guest7526
guest7526
  1. aorf4utnaroeifnuoir

  2. arftarftarftarft

  3. reviewboard/search/tests/test_search_view.py (Diff revision 1)
     
     
     
     

    dejemos import.DiffSetHistory

  4. reviewboard/templates/search/results.html (Diff revision 1)
     
     
     
     

    uy esto esta chevere

  5. arftarftarft

guest7526
Review request changed

Status: Closed (submitted)

guest2788
  1. aaa

  2. 
      
Loading...