@@ -64,10 +64,10 @@ def _get_displayed_page_numbers(current, final):
64
64
65
65
This implementation gives one page to each side of the cursor,
66
66
or two pages to the side when the cursor is at the edge, then
67
- ensures that any breaks between non-continous page numbers never
67
+ ensures that any breaks between non-continuous page numbers never
68
68
remove only a single page.
69
69
70
- For an alernativative implementation which gives two pages to each side of
70
+ For an alternative implementation which gives two pages to each side of
71
71
the cursor, eg. as in GitHub issue list pagination, see:
72
72
73
73
https://gist.github.com/tomchristie/321140cebb1c4a558b15
@@ -476,10 +476,10 @@ def paginate_queryset(self, queryset, request, view=None):
476
476
477
477
# Determine the position of the final item following the page.
478
478
if len (results ) > len (self .page ):
479
- has_following_postion = True
479
+ has_following_position = True
480
480
following_position = self ._get_position_from_instance (results [- 1 ], self .ordering )
481
481
else :
482
- has_following_postion = False
482
+ has_following_position = False
483
483
following_position = None
484
484
485
485
# If we have a reverse queryset, then the query ordering was in reverse
@@ -490,14 +490,14 @@ def paginate_queryset(self, queryset, request, view=None):
490
490
if reverse :
491
491
# Determine next and previous positions for reverse cursors.
492
492
self .has_next = (current_position is not None ) or (offset > 0 )
493
- self .has_previous = has_following_postion
493
+ self .has_previous = has_following_position
494
494
if self .has_next :
495
495
self .next_position = current_position
496
496
if self .has_previous :
497
497
self .previous_position = following_position
498
498
else :
499
499
# Determine next and previous positions for forward cursors.
500
- self .has_next = has_following_postion
500
+ self .has_next = has_following_position
501
501
self .has_previous = (current_position is not None ) or (offset > 0 )
502
502
if self .has_next :
503
503
self .next_position = following_position
@@ -534,7 +534,7 @@ def get_next_link(self):
534
534
# our marker.
535
535
break
536
536
537
- # The item in this postion has the same position as the item
537
+ # The item in this position has the same position as the item
538
538
# following it, we can't use it as a marker position, so increment
539
539
# the offset and keep seeking to the previous item.
540
540
compare = position
@@ -582,7 +582,7 @@ def get_previous_link(self):
582
582
# our marker.
583
583
break
584
584
585
- # The item in this postion has the same position as the item
585
+ # The item in this position has the same position as the item
586
586
# following it, we can't use it as a marker position, so increment
587
587
# the offset and keep seeking to the previous item.
588
588
compare = position
0 commit comments