diff options
author | luxagraf <sng@luxagraf.net> | 2018-01-29 13:00:52 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-01-29 13:00:52 -0600 |
commit | 8d42093452652eeeb149f8b596b43c4317a8909e (patch) | |
tree | 80ee11a6e83e416d776ce7f5b78dcad62b94c65a /app/jrnl | |
parent | f5e8556676cd9158fccc82934a7eb5037c52e957 (diff) |
added sightings to entry template
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/jrnl/views.py b/app/jrnl/views.py index 253aa5e..59fff7a 100644 --- a/app/jrnl/views.py +++ b/app/jrnl/views.py @@ -9,7 +9,7 @@ from utils.views import PaginatedListView from .models import Entry, HomepageCurrator from locations.models import CheckIn, Country, Region -from birds.models import BirdSighting +from sightings.models import Sighting class EntryList(PaginatedListView): @@ -82,7 +82,7 @@ class EntryDetailView(DetailView): def get_context_data(self, **kwargs): context = super(EntryDetailView, self).get_context_data(**kwargs) - context['wildlife'] = BirdSighting.objects.filter(location=self.get_object().location) + context['wildlife'] = Sighting.objects.filter(location=self.get_object().location).order_by('ap__apclass__kind') return context class EntryDetailViewTXT(EntryDetailView): |