Skip to content
GitLab
Explore
Sign in
Commit
40950742
authored
3 years ago
by
Canek Peláez Valdés
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug where up was used before defining it.
parent
d8380eb4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fotos/views.py
+7
-7
7 additions, 7 deletions
fotos/views.py
with
7 additions
and
7 deletions
fotos/views.py
+
7
−
7
View file @
40950742
...
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment