Skip to content

Commit

Permalink
Viderestil bruger til liste over tilmeldte aktiviteter efter man har …
Browse files Browse the repository at this point in the history
…tilmeldt sig
  • Loading branch information
rasmusselsmark committed Aug 20, 2023
1 parent f7942b4 commit f5317e6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions members/views/ActivitySignup.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ def ActivitySignup(request, activity_id, person_id=None):
participant.photo_permission = signup_form.cleaned_data["photo_permission"]
participant.save()

return_link_url = reverse(
"activity_view_person", args=[activity.id, person.id]
)
# return user to list of activities where they are participating
return_link_url = f'{reverse("activities")}#tab-tilmeldte-aktiviteter'

# Make payment if activity costs
if activity.price_in_dkk is not None and activity.price_in_dkk > 0:
Expand All @@ -171,8 +170,7 @@ def ActivitySignup(request, activity_id, person_id=None):
payment.save()

return_link_url = payment.get_quickpaytransaction().get_link_url(
return_url=settings.BASE_URL
+ reverse("activity_view_person", args=[activity.id, person.id])
return_url=settings.BASE_URL + return_link_url
)

# expire invitation
Expand Down

0 comments on commit f5317e6

Please sign in to comment.