Re: [RFC 04/11] REST: Introduce some helper code

2016-05-10 Thread Andy Doan
On 05/09/2016 08:27 AM, Finucane, Stephen wrote: On 15 Apr 13:24, Andy Doan wrote: >DRF lends its self to a lot of repetitive code like: > > Serializer: >Meta: > model = Foo > > ViewSet: > queryset = Foo.objects > > >This reduces the amount of boiler plate code needed for most of

Re: [RFC 04/11] REST: Introduce some helper code

2016-05-09 Thread Finucane, Stephen
On 15 Apr 13:24, Andy Doan wrote: > DRF lends its self to a lot of repetitive code like: > > Serializer: >Meta: > model = Foo > > ViewSet: > queryset = Foo.objects > > > This reduces the amount of boiler plate code needed for most of our > endpoints so that its easier to audit. >

[RFC 04/11] REST: Introduce some helper code

2016-04-15 Thread Andy Doan
DRF lends its self to a lot of repetitive code like: Serializer: Meta: model = Foo ViewSet: queryset = Foo.objects This reduces the amount of boiler plate code needed for most of our endpoints so that its easier to audit. Signed-off-by: Andy Doan --- patchwork/views/rest_api.py