fix: return url correct
This commit is contained in:
parent
e34ab98456
commit
447aad91f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user