From 447aad91f934f9f41801d3aad00010b9ba9a1f76 Mon Sep 17 00:00:00 2001 From: moanos Date: Mon, 21 Oct 2024 20:43:47 +0200 Subject: [PATCH] fix: return url correct --- idescriptor/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idescriptor/models.py b/idescriptor/models.py index b7cf577..bb794a5 100644 --- a/idescriptor/models.py +++ b/idescriptor/models.py @@ -40,7 +40,7 @@ class Image(models.Model): return f"{self.file_hash}" def get_absolute_url(self): - reverse("image-update", pk=self.id) + return reverse("image-update", args=[self.id]) def set_image_posted(self): self.number_times_posted += 1