Skip to content

Commit

Permalink
fix: Update query in AnimalStatisticsView to use ItineraryStop instea…
Browse files Browse the repository at this point in the history
…d of AnimalSpotting
  • Loading branch information
drikusroor committed Oct 12, 2024
1 parent 96d3ce8 commit 0ee1a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/animals/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_context_data(self, **kwargs):
)

start_date = (
AnimalSpotting.objects.order_by("date")
ItineraryStop.objects.order_by("date")
.annotate(date_day=TruncDate("date"))
.first()
.date_day
Expand Down

0 comments on commit 0ee1a16

Please sign in to comment.