Skip to content

Commit 02c54e0

Browse files
committed
Removed unused options
1 parent 6d03d6c commit 02c54e0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

api/filters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ def filter_fully_predicted(self, queryset, name, value):
170170
field_name="report__country",
171171
queryset=EuropeCountry.objects.all(),
172172
)
173-
observation_short_id = filters.CharFilter(field_name="report__report_id", label="Observation short ID")
174173

175174
result_taxon_ids = filters.ModelMultipleChoiceFilter(
176175
field_name="taxon",

api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ class AnnotationViewSet(IdentificationTaskNestedAttribute, NestedViewSetMixin, L
693693
serializer_class = AnnotationSerializer
694694
filter_backends = (DjangoFilterBackend, SearchFilter)
695695
filterset_class = AnnotationFilter
696-
search_fields = ("report__report_id", "report_pk_str")
696+
search_fields = ("report_pk_str",) #NOTE: not filtering by 'report__report_id' because in not being shown in the response.
697697
permission_classes = (AnnotationPermissions | UserRolePermission, )
698698

699699
parent_lookup_kwargs = {

0 commit comments

Comments
 (0)