Re: [PATCH v3 05/10] REST: Add Patches to the API

2016-05-20 Thread Andy Doan
On 05/19/2016 04:19 AM, Finucane, Stephen wrote: On 18 May 22:30, Andy Doan wrote: +class PatchListSerializer(ListSerializer): +'''Semi hack to make the list of patches more efficient''' +def to_representation(self, data): +del self.child.fields['content'] +del

Re: [PATCH v3 05/10] REST: Add Patches to the API

2016-05-19 Thread Finucane, Stephen
On 18 May 22:30, Andy Doan wrote: > This exposes patches via the REST API. > > Security Constraints: > * Anyone (logged in or not) can read all objects. > * No one can create/delete objects. > * Project maintainers are allowed to update (ie "patch" >attributes) > > NOTE: Patch.save was

[PATCH v3 05/10] REST: Add Patches to the API

2016-05-18 Thread Andy Doan
This exposes patches via the REST API. Security Constraints: * Anyone (logged in or not) can read all objects. * No one can create/delete objects. * Project maintainers are allowed to update (ie "patch" attributes) NOTE: Patch.save was overridden incorrectly and had to be fixed to work