Show photo by pk
This commit is contained in:
parent
7f425eacb7
commit
ced85c7b44
2 changed files with 2 additions and 2 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue