djangorestframework-queryfields
djangorestframework-queryfields copied to clipboard
QueryFieldsMixin and GeoFeatureModelSerializer
I'm trying to use QueryFieldsMixin, along with GeoFeatureModelSerializer from django-rest-framework-gis as follows:
class gauge_station_source_data_Serializer(QueryFieldsMixin, GeoFeatureModelSerializer):
However, when I specify ?fields=field1,field2 in my url, it still returns all the fields available, instead of just field1 and field2.
I can use QueryFieldsMixin without GeoFeatureModelSerializer, on a none geospatial model, and it works fine.
Jim