15five / django-scim2

A SCIM 2.0 Service Provider Implementation (for Django)
http://django-scim2.readthedocs.io/
Other
77 stars 27 forks source link

Add queryset post processor to GetView.get_many() #58

Closed TimmyTango closed 3 years ago

TimmyTango commented 3 years ago

I needed to be able to modify the queryset returned from GetView.get_many() in ways filter/exclude kwargs didn't allow. I took inspiration from the object post processor used in SCIMView.get_object() and implemented a queryset post processor that allows you to modify the queryset after filter/exlclude kwargs are applied, but before the queryset is ordered and returned.

There may be a use-case where we'd also want to use this on the queryset in get_object(), but I personally didn't need it and the object post processor can be used on the object anyway. I would be happy to implement it that way if it is desired.

logston commented 3 years ago

Released in 0.17.0.

There may be a use-case where we'd also want to use this on the queryset in get_object(), but I personally didn't need it and the object post processor can be used on the object anyway. I would be happy to implement it that way if it is desired.

That'd be great. As you have time, if you could push a commit for that it would be greatly appreciated.