Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MaertHaekkinen committed Oct 23, 2024
1 parent 7455da5 commit 65aa857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajapaik/ajapaik/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def photo_slug(request, photo_id=None, pseudo_slug=None):
try:
previous_photo = Photo.objects.get(pk=previous_photo_id)
except Exception as e:
raise Exception(f"Matching query does not exist {next_photo_id}")
raise Exception(f"Matching query does not exist {previous_photo_id}")
else:
album_selection_form = AlbumSelectionForm(
initial={'album': Album.objects.filter(is_public=True).order_by('-created').first()}
Expand Down

0 comments on commit 65aa857

Please sign in to comment.