summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/jrnl/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/views.py b/app/jrnl/views.py
index 75501f4..980038c 100644
--- a/app/jrnl/views.py
+++ b/app/jrnl/views.py
@@ -82,7 +82,7 @@ class EntryDetailView(DetailView):
def get_context_data(self, **kwargs):
context = super(EntryDetailView, self).get_context_data(**kwargs)
- context['wildlife'] = Sighting.objects.filter(location=self.get_object().location).order_by('ap__apclass__kind')
+ context['wildlife'] = Sighting.objects.filter(location=self.get_object().location).distinct().order_by('ap__apclass__kind')
return context
class EntryDetailViewTXT(EntryDetailView):