+
+
+class TermSearchFilter(SearchFilter):
+ search_param = 'term'
+
+
+class Terms(ListAPIView):
+ filter_backends = [TermSearchFilter]
+ search_fields = ['name']
+
+ class serializer_class(serializers.Serializer):
+ label = serializers.CharField(source='name')
+
+
+class EpochTerms(Terms):
+ queryset = models.Epoch.objects.all()
+class KindTerms(Terms):
+ queryset = models.Kind.objects.all()
+class GenreTerms(Terms):
+ queryset = models.Genre.objects.all()