From 8f7f6983cd95591ddcfaf06db672b2a3feb67b05 Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Mon, 31 Aug 2020 10:55:50 +0200 Subject: [PATCH] Something is fishy with Django 3.1 - needs futher and deeper investigation --- ivatar/ivataraccount/test_views.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ivatar/ivataraccount/test_views.py b/ivatar/ivataraccount/test_views.py index 7bd9c90..5f5349b 100644 --- a/ivatar/ivataraccount/test_views.py +++ b/ivatar/ivataraccount/test_views.py @@ -956,11 +956,11 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods args=[self.user.confirmedopenid_set.first().id]) # The get is for the view - test context data self.client.get(url, { - 'photo_id': int(self.user.photo_set.first().id), + 'photo_id': self.user.photo_set.first().id, }) # The post is for the actual assigning response = self.client.post(url, { - 'photo_id': int(self.user.photo_set.first().id), + 'photo_id': self.user.photo_set.first().id, }, follow=True) self.assertEqual(response.status_code, 200, 'cannot assign photo?') self.assertEqual( diff --git a/requirements.txt b/requirements.txt index 760b3df..93dd272 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ autopep8 bcrypt defusedxml -Django +Django<3.1 django-auth-ldap django-bootstrap4 django-coverage-plugin