]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
requirements: Bump django-rest-framework to 3.5
authorStephen Finucane <stephen@that.guru>
Mon, 31 Oct 2016 18:23:28 +0000 (18:23 +0000)
committerStephen Finucane <stephen@that.guru>
Fri, 18 Nov 2016 01:32:07 +0000 (01:32 +0000)
This requires explicitly declaring the 'field' parameter.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/rest_serializers.py
requirements-test.txt

index af6b1b7fa6759c51ac688f77904cbb35089aed52..7bbad8d41629429ef06214c716892e4128648968 100644 (file)
@@ -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',)
index a2e32645a4ff8135a3e66b73afe76a8e1e3a3c8b..b27055ff2f04d9ccdbe5edee4dacc2caa369389b 100644 (file)
@@ -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