diff options
Diffstat (limited to 'app/jrnl/views.py')
-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): |