summaryrefslogtreecommitdiff
path: root/app/sightings/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sightings/models.py')
-rw-r--r--app/sightings/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/sightings/models.py b/app/sightings/models.py
index 7f93fa8..9559d38 100644
--- a/app/sightings/models.py
+++ b/app/sightings/models.py
@@ -119,7 +119,7 @@ class Sighting(models.Model):
return img.get_image_by_size(size)
def get_absolute_url(self):
- return reverse("sightings:detail", kwargs={"slug": self.bird.slug})
+ return reverse("sightings:detail", kwargs={"slug": self.ap.slug})
def __str__(self):
return self.ap.common_name