api snapshot public_url bugfix

with the following code the URL is more appropriate (it basically
mirrors the user's request)

before:

    http://localhost/device/{shortid}

after

    http://localhost:8000/device/{shortid}
This commit is contained in:
pedro 2024-10-15 13:11:24 +02:00
parent 5e6546169b
commit 57cec14429

View file

@ -1,6 +1,5 @@
import json
from django.conf import settings
from django.urls import reverse_lazy
from django.shortcuts import get_object_or_404, redirect
from django.utils.translation import gettext_lazy as _