fix: return url correct

This commit is contained in:
moanos [he/him] 2024-10-21 20:43:47 +02:00
parent e34ab98456
commit 447aad91f9

View File

@ -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