Skip to content

Commit 6dd5e91

Browse files
authored
Merge pull request #98 from duanhongyi/master
chore(django-rest-framework): upgrade to 3.9.3
2 parents 3aef260 + 83bd863 commit 6dd5e91

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rootfs/api/exceptions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from django.http import Http404
22
import logging
3-
from rest_framework.compat import set_rollback
43
from rest_framework.exceptions import APIException, status
54
from rest_framework.response import Response
6-
from rest_framework.views import exception_handler
5+
from rest_framework.views import set_rollback, exception_handler
76

87

98
class HealthcheckException(APIException):

rootfs/api/tests/test_pods.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ def test_scale_errors(self, mock_requests):
392392
response = self.client.post(url, body)
393393
self.assertEqual(response.status_code, 400, response.data)
394394
self.assertEqual(response.data, {"detail": "Invalid scaling format: "
395-
"['Must be greater than or equal to zero']"})
395+
"[ErrorDetail(string='Must be greater "
396+
"than or equal to zero', code='invalid')]"})
396397

397398
# scale to something other than a number
398399
url = "/v2/apps/{app_id}/scale".format(**locals())

rootfs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ django==1.11.20
44
django-auth-ldap==1.2.15
55
django-cors-middleware==1.3.1
66
django-guardian==1.4.9
7-
djangorestframework==3.6.4
7+
djangorestframework==3.9.3
88
docker-py==1.10.6
99
gunicorn==19.7.1
1010
idna==2.6

0 commit comments

Comments
 (0)