Started unit tests for row/table HTML pages

Refs #167

Thanks to the new tests, spotted and fixed a bug where pages that were
supposed to have 100 things on them were actually displaying 101.
This commit is contained in:
Simon Willison 2017-12-09 15:32:54 -08:00
commit 7a7e4b2ed8
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
3 changed files with 75 additions and 1 deletions

View file

@ -672,6 +672,7 @@ class TableView(RowTableShared):
next_url = urllib.parse.urljoin(request.url, path_with_added_args(request, {
'_next': next_value,
}))
rows = rows[:self.page_size]
# Number of filtered rows in whole set:
filtered_table_rows = None