Skip to content

Commit af857c2

Browse files
committed
paginator: Remove long_page property
This property is not used anymore, the last reference was removed in 17726d7 (views: Move and refactor patch-forms). Computing it may execute an unnecessary count query.
1 parent 644cef7 commit af857c2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎patchwork/paginator.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,3 @@ def __init__(self, request, objects):
9090
# prevent e.g. 1 2 ... 5 6 7 ... 8 9
9191
if self.trailing_set[0] != self.adjacent_set[-1] + 1:
9292
self.show_trailing_ellipsis = True
93-
94-
self.long_page = (
95-
len(self.current_page.object_list) >= LONG_PAGE_THRESHOLD
96-
)

0 commit comments

Comments
 (0)