from rest_framework import serializers as ser

from api.base.serializers import JSONAPISerializer


class TaxonomySerializer(JSONAPISerializer):
    filterable_fields = frozenset([
        'text',
        'parent_ids'
    ])

    type = ser.CharField(max_length=200)
    text = ser.CharField(max_length=200)
    parent_ids = ser.ListField()
    id = ser.CharField(max_length=200)

    def get_absolute_url(self, obj):
        return obj.get_absolute_url()

    class Meta:
        type_ = 'taxonomies'

@@ -210,16 +210,30 @@
 ent_ids'
+,%0A        'id'
 %0A    %5D)%0A

allow id to be a filter :