Skip to content

Commit

Permalink
Merge pull request #49 from carlosp420/master
Browse files Browse the repository at this point in the history
fixed pagination bug
  • Loading branch information
carlosp420 committed Oct 11, 2016
2 parents ae2f609 + eab9db4 commit ef2530a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manolo/apps/visitors/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ def paginate_sections(self):

if D1 and D2:
# L…M…R
pagination = L + [None] + M + [None] + list(R)
pagination = list(L) + [None] + list(M) + [None] + list(R)
elif not D1 and D2:
# LM…R
pagination = sorted(L_s | M_s) + [None] + list(R)
elif D1 and not D2:
# L…MR
pagination = L + [None] + sorted(M_s | R_s)
pagination = list(L) + [None] + sorted(M_s | R_s)
else:
# LMR
pagination = sorted(L_s | M_s | R_s)
Expand Down

0 comments on commit ef2530a

Please sign in to comment.