Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
oakdbca committed Oct 17, 2024
1 parent a276602 commit 56dd727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boranga/components/occurrence/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6921,7 +6921,7 @@ def get_sample_value(self, errors, species_or_community_identifier=None):
related_model_qs = related_model_qs.annotate(
occurrence_count=Subquery(
Occurrence.objects.filter(community__pk=OuterRef("pk"))
.values("species")
.values("community")
.annotate(count=Count("id"))
.values("count")
)
Expand Down

0 comments on commit 56dd727

Please sign in to comment.