mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Allow to unlock a payment method and redeem a voucher at the same time (#5564)
This commit is contained in:
@@ -107,4 +107,10 @@ class UnlockHashView(EventViewMixin, View):
|
|||||||
hashes = request.session.get('pretix_unlock_hashes', [])
|
hashes = request.session.get('pretix_unlock_hashes', [])
|
||||||
hashes.append(kwargs.get('hash'))
|
hashes.append(kwargs.get('hash'))
|
||||||
request.session['pretix_unlock_hashes'] = hashes
|
request.session['pretix_unlock_hashes'] = hashes
|
||||||
|
|
||||||
|
if 'voucher' in request.GET:
|
||||||
|
return redirect_to_url(
|
||||||
|
eventreverse(self.request.event, 'presale:event.redeem') + f'?{request.META["QUERY_STRING"]}'
|
||||||
|
)
|
||||||
|
|
||||||
return redirect_to_url(eventreverse(self.request.event, 'presale:event.index'))
|
return redirect_to_url(eventreverse(self.request.event, 'presale:event.index'))
|
||||||
|
|||||||
Reference in New Issue
Block a user