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