[Sharing] a django app to apply filters on drf querysets using query params with validations using voluptuous.

2016-04-10 Thread Manjit Kumar
https://github.com/manjitkumar/drf-url-filters *drf-url-filters* is a simple django app to apply filters on drf modelviewset's queryset in a clean, simple and configurable way. It also supports validations on incoming query params and their values. A beautiful python package voluptouos is

How to update values in instance when have a custom .update() to update many-to-many relations in DRF writable nested serializer?

2016-04-05 Thread Manjit Kumar
http://stackoverflow.com/questions/36397357/how-to-update-values-in-instance-when-have-a-custom-update-to-update-many-to I have three models Player, Team, and Membership, Where Player and Team have many-to-many relationship using Membership as intermediary model. class Player(models.Model):