diff --git a/smash/web/views.py b/smash/web/views.py index a605aef00da631c89a4d94371b11ccdcaa644622..4d08e63455df7a56684021a83d9c308a6ee87aef 100644 --- a/smash/web/views.py +++ b/smash/web/views.py @@ -231,8 +231,7 @@ def visit_mark(request, id, as_what): if as_what == 'finished': visit.mark_as_finished() - visit = get_object_or_404(Visit, id=id) - return redirect(visit_details, id=visit.subject.latest_visit().id) + return redirect(visit_details, id=id)