From: Stephen Finucane Date: Mon, 31 Oct 2016 18:23:28 +0000 (+0000) Subject: requirements: Bump django-rest-framework to 3.5 X-Git-Tag: v2.0.0-rc1~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b3c90c6db1643d62dfc4f707aca07a3108a6ff;p=thirdparty%2Fpatchwork.git requirements: Bump django-rest-framework to 3.5 This requires explicitly declaring the 'field' parameter. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/rest_serializers.py b/patchwork/rest_serializers.py index af6b1b7f..7bbad8d4 100644 --- a/patchwork/rest_serializers.py +++ b/patchwork/rest_serializers.py @@ -44,6 +44,7 @@ class URLSerializer(HyperlinkedModelSerializer): class PersonSerializer(URLSerializer): class Meta: model = Person + fields = ('email', 'name', 'user',) class UserSerializer(HyperlinkedModelSerializer): @@ -141,4 +142,6 @@ class ChecksSerializer(ModelSerializer): class Meta: model = Check - read_only_fields = ('date', ) + fields = ('patch', 'user', 'date', 'state', 'target_url', + 'description', 'context',) + read_only_fields = ('date',) diff --git a/requirements-test.txt b/requirements-test.txt index a2e32645..b27055ff 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -2,5 +2,5 @@ mysqlclient>=1.3,<1.4 # replace this with psycopg2 for a PostgreSQL backend django-debug-toolbar==1.6 python-dateutil>2.0,<3.0 selenium>=3.0,<3.1 -djangorestframework>=3.4,<3.5 +djangorestframework>=3.5,<3.6 drf-nested-routers>=0.11.1,<0.12