2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 03:17:12 +00:00

removed fossil URL_ROOT from active code

This commit is contained in:
2023-10-01 12:21:34 +03:00
parent c80db1a55f
commit fd94909ee7
6 changed files with 19 additions and 17 deletions

View File

@@ -84,7 +84,8 @@ class Wallet(models.Model):
ordering = ("walletname",)
def get_absolute_url(self):
return urljoin(settings.URL_ROOT, reverse("singlewallet", kwargs={"path": re.sub("#", "%23", self.walletname)}))
# we do not use URL_ROOT any more.
return reverse("singlewallet", kwargs={"path": re.sub("#", "%23", self.walletname)})
def get_json(self):
"""Read the JSON file for the wallet and do stuff