[PATCH 4/5] requirements: Bump django-rest-framework to 3.5
Stephen Finucane
stephen at that.guru
Tue Nov 1 05:23:28 AEDT 2016
This requires explicitly declaring the 'field' parameter.
Signed-off-by: Stephen Finucane <stephen at that.guru>
---
patchwork/rest_serializers.py | 5 ++++-
requirements-test.txt | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/patchwork/rest_serializers.py b/patchwork/rest_serializers.py
index af6b1b7..7bbad8d 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 a2e3264..b27055f 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
--
2.7.4
More information about the Patchwork
mailing list