Skip to content

Commit

Permalink
fix URL rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Mar 14, 2024
1 parent 2346ac5 commit 0f0dda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pretix_wallet/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ def post(self, request, *args, **kwargs):
self.request.customer.wallet.giftcard.linked_media.set([medium])
medium.save()
messages.success(request, _("Your transponder has been paired succesfully."))
return redirect("plugins:pretix_wallet:wallet", organizer=self.request.organizer.slug)
return redirect("plugins:pretix_wallet:transactions", organizer=self.request.organizer.slug)


class RemovePairingView(CustomerRequiredMixin, WalletRequiredMixin, View):
def post(self, request, *args, **kwargs):
self.request.customer.wallet.giftcard.linked_media.clear()
messages.success(request, _("Your transponder has been unpaired succesfully."))
return redirect("plugins:pretix_wallet:wallet", organizer=self.request.organizer.slug)
return redirect("plugins:pretix_wallet:transactions", organizer=self.request.organizer.slug)


class ProductViewSet(TerminalAuthMixin, ReadOnlyModelViewSet):
Expand Down

0 comments on commit 0f0dda6

Please sign in to comment.