Closed rgant closed 7 years ago
When updating many-to-many relationship you need to be able to PATCH an empty list.
The way the code worked an empty array of data was serialized into nothing because it didn't initialize the data to be an array.
This fixes that and adds a test case.
When updating many-to-many relationship you need to be able to PATCH an empty list.
The way the code worked an empty array of data was serialized into nothing because it didn't initialize the data to be an array.
This fixes that and adds a test case.