UEWBot / dipvis

Django-based visualiser for tournaments for the boardgame Diplomacy
GNU General Public License v3.0
7 stars 5 forks source link

Paginate Tournament index #232

Open UEWBot opened 2 years ago

UEWBot commented 2 years ago

Like the player index has pagination.

UEWBot commented 1 year ago

It's actually a little more complex than I originally thought. In player_views.py, PlayerIndexView() is a subclass of generic.ListView with a paginate_by attribute. In tournament_views.py, though, tournament_index() is hand-coded with multiple lists of tournaments.