Commit 9f1b4941 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'cherry-pick-e7401afa' into 'release/1.12'

Merge branch 'fix/photos-more-than-7-pages' into 'master'

See merge request !662
parents 189243ba 23242a53
......@@ -54,9 +54,11 @@ def index(request):
except PageNotAnInteger:
# If page is not an integer, deliver first page.
albums =
page = 1
except EmptyPage:
# If page is out of range (e.g. 9999), deliver last page of results.
albums =
page = paginator.num_pages
page_range = range(1, paginator.num_pages + 1)
if paginator.num_pages > 7:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment