I'm not totally sure on this, but I think since the pulp_file plugin is defining the File content type and additional fields it has to also define the filterset that goes with it.
Can someone else with more DRF experience confirm that plugin writers must define a filterset for pulp to work? Or could a plugin writer in some cases use a generic FilterSet that would be provided by core? On Mon, Sep 18, 2017 at 8:58 PM, Tatiana Tereshchenko <[email protected]> wrote: > There are FilterSets [0][1] defined for master models, so they can be used > as-is or extended by plugin for detail models. Currently they don't seem to > be available via plugin API and plugin defines its own FilterSet [2]. Is it > intentional? > I suggest to add them to pulpcore.plugin. > > Thanks, > Tanya > > [0] https://github.com/pulp/pulp/blob/ba6792d9740ab7e104df8147806e80 > fe22ae483a/platform/pulpcore/app/viewsets/repository.py#L68-L115 > [1] https://github.com/pulp/pulp/blob/ba6792d9740ab7e104df8147806e80 > fe22ae483a/platform/pulpcore/app/viewsets/content.py#L12 > [2] https://github.com/pulp/pulp_file/blob/d684f75ea148711f91ea1e1800f44a > 941275f606/pulp_file/app/viewsets.py#L7 > > > _______________________________________________ > Pulp-dev mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/pulp-dev > >
_______________________________________________ Pulp-dev mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-dev
