djangorestframework-queryfields icon indicating copy to clipboard operation
djangorestframework-queryfields copied to clipboard

QueryFieldsMixin and GeoFeatureModelSerializer

Open jmpmcmanus opened this issue 2 years ago • 0 comments

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

jmpmcmanus avatar Feb 16 '23 19:02 jmpmcmanus