summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/sightings/build.py2
-rw-r--r--app/sightings/models.py2
-rw-r--r--design/templates/archives/sightings.html2
3 files changed, 3 insertions, 3 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
diff --git a/design/templates/archives/sightings.html b/design/templates/archives/sightings.html
index 71cd389..89e31ce 100644
--- a/design/templates/archives/sightings.html
+++ b/design/templates/archives/sightings.html
@@ -13,7 +13,7 @@
<li itemprop="title">the United States</li>{%else%}<li><a href="/jrnl/" title="See all Journal Entries" itemprop="url"><span>Plants and Animals</span></a> &rarr;</li>
<li>{{region.name|title|smartypants|safe}}</li>{%endif%}{%else%}<li>Plants and Animals</li>{%endif%}
</ul>
- <main role="main" class="archive">{% autopaginate object_list 40 %}
+ <main role="main" class="archive">{% autopaginate object_list 24%}
<h1 class="hide">Plants and Animals seen {% if region %}in {%if region.name == 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endif%}{%else%} by {{user}}{%endif%}</h1> {% for object in object_list %}
<article class="{% cycle 'odd' 'even' %} {% cycle 'first' 'second' 'third' %}">
<div class="post--image">