django-rest-framework-gis
django-rest-framework-gis copied to clipboard
GeoFeatureModelSerializer and QueryFieldsMixin
I'm trying to use GeoFeatureModelSerializer, along with QueryFieldsMixin from djangorestframework-queryfields 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