Skip to content
Commit 40950742 authored by Canek Peláez Valdés's avatar Canek Peláez Valdés :slight_smile:
Browse files

Fix bug where up was used before defining it.

parent d8380eb4
No related branches found
No related tags found
No related merge requests found
......@@ -880,6 +880,13 @@ def event(request, year, month, event):
PREFIX + '/admin/delete?' +
urlencode({'path': path}))
highlight_url = PREFIX + '/admin/highlight?' + urlencode({'path': path})
highlight = ea.the_photo
up = ma.get_url_path()
page = request.GET.get('page', 1)
paginator = Paginator(photos, PAGINATION_ITEMS)
the_page = paginator.get_page(page)
events = _get_events(ma)
i = 0
while ea != events[i]:
......@@ -888,13 +895,6 @@ def event(request, year, month, event):
if up_page > 1:
up += '?page=%d' % up_page
highlight_url = PREFIX + '/admin/highlight?' + urlencode({'path': path})
highlight = ea.the_photo
up = ma.get_url_path()
page = request.GET.get('page', 1)
paginator = Paginator(photos, PAGINATION_ITEMS)
the_page = paginator.get_page(page)
attrs = { 'album': ea,
'breadcrumbs': [{ 'link': ya.get_url_path(),
'name': ya.name },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment