Skip to content

Commit

Permalink
Remove duplicated queryset of data browser (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
meomancer authored Sep 18, 2024
1 parent 882650f commit 9cebe62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion django_project/_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.42.13
1.42.14
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ def serializer_class(self):
return IndicatorValueWithPermissionSerializer
return IndicatorValueSerializer

def get_queryset(self):
"""Return queryset of API."""
query = super().get_queryset()
ids = query.values_list('id', flat=True)
return IndicatorValue.objects.filter(id__in=list(ids)).order_by(
'indicator_id', '-date', 'geom_id'
)

def get_serializer_context(self):
"""For serializer context."""
context = super().get_serializer_context()
Expand Down

0 comments on commit 9cebe62

Please sign in to comment.