summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/sightings/build.py2
-rw-r--r--app/sightings/models.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/sightings/build.py b/app/sightings/build.py
index 97eecd5..e8db6f9 100644
--- a/app/sightings/build.py
+++ b/app/sightings/build.py
@@ -17,5 +17,5 @@ class BuildSightings(BuildNew):
return self.model.objects.all()
def builder():
- j = BuildSightings("ap", "sighting")
+ j = BuildSightings("sightings", "sighting")
j.build()
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