Skip to content

GeoFeatureModelSerializer and QueryFieldsMixin #280

@jmpmcmanus

Description

@jmpmcmanus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions