[PATCH v2 03/13] REST: Explicitly define fields

Andy Doan andy.doan at linaro.org
Wed Nov 23 04:53:52 AEDT 2016


On 11/19/2016 10:51 AM, Stephen Finucane wrote:
> While a little more verbose, this ensures the fields that are exposed
> by the API remain consistent. This also resolves an issues with
> django-rest-framework 3.5, which expects either 'fields' or 'excludes'
> to be defined on all serializers.
>
> The Meta class for the Project and Patch serializers are moved to the
> bottom of the serializers for consistency's sake.
>
> Signed-off-by: Stephen Finucane <stephen at that.guru>
> Cc: Andy Doan <andy.doan at linaro.org>

I had similar questions to Daniel. However, the general idea is an 
improvement.



More information about the Patchwork mailing list