fix url empty

This commit is contained in:
Cayo Puigdefabregas 2024-03-27 17:33:39 +01:00
parent 43aad9e187
commit 1746d44dec

View file

@ -236,7 +236,8 @@ class AllowCodeView(View):
)
if self.request.session.get("response_uri"):
url = self.send_api()
return redirect(url)
if url:
return redirect(url)
promotion = self.authorization.promotions.first()
if not promotion: