Show photo by pk

This commit is contained in:
Alexandre Iooss 2022-03-02 13:11:24 +01:00
parent 7f425eacb7
commit ced85c7b44
2 changed files with 2 additions and 2 deletions

View file

@ -502,7 +502,7 @@ class Photo(ImageModel):
super().save(*args, **kwargs)
def get_absolute_url(self):
return reverse('photologue:pl-photo', args=[self.slug])
return reverse('photologue:pl-photo', args=[self.pk])
def public_galleries(self):
"""Return the public galleries to which this photo belongs."""