generated from bisco/codex-bootstrap
fix: use absolute public booking URLs
This commit is contained in:
@@ -2,6 +2,7 @@ import base64
|
||||
from io import BytesIO
|
||||
|
||||
import qrcode
|
||||
from django.conf import settings
|
||||
|
||||
from .models import Reservation
|
||||
|
||||
@@ -10,7 +11,7 @@ CHECK_IN_PREVIEW_PATH = "/api/check-ins/preview/"
|
||||
|
||||
|
||||
def build_check_in_preview_url(raw_check_in_token):
|
||||
return f"{CHECK_IN_PREVIEW_PATH}?token={raw_check_in_token}"
|
||||
return f"{settings.SITE_BASE_URL}{CHECK_IN_PREVIEW_PATH}?token={raw_check_in_token}"
|
||||
|
||||
|
||||
def generate_check_in_qr_png(raw_check_in_token):
|
||||
|
||||
Reference in New Issue
Block a user