diff options
author | luxagraf <sng@luxagraf.net> | 2018-01-28 10:48:14 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-01-28 10:48:14 -0600 |
commit | 5d901524e66afcd694f31b5df6f4d7fa938f9a98 (patch) | |
tree | 39634eeb819250d57c66b6dbd676ef17ba1365a2 /app | |
parent | dcab104af3e89a97c3834b10c8c98229fb5308fe (diff) |
fixed some bugs with building sightings
Diffstat (limited to 'app')
-rw-r--r-- | app/sightings/build.py | 2 | ||||
-rw-r--r-- | app/sightings/models.py | 2 |
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 |