Skip to content

Commit 91f6820

Browse files
upgrade to django 5.1 (#561)
1 parent 69cb7c0 commit 91f6820

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-version: [3.11]
1515
services:
1616
postgres:
17-
image: postgres:12
17+
image: postgres:15
1818
env:
1919
POSTGRES_USER: postgres
2020
POSTGRES_PASSWORD: postgres

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
services:
44
db:
5-
image: postgres:12.3
5+
image: postgres:15.13
66
environment:
77
- POSTGRES_HOST_AUTH_METHOD=trust
88
- POSTGRES_DB=djangosnippets

ratings/tests/tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ def test_order_postgresql(self):
264264
self.assertEqual(list(rated_qs), [self.item3, self.item1])
265265

266266
# check that the model method results are what we expect
267-
self.assertQuerysetEqual(
268-
rated_qs, self.rated_model.ratings.order_by_rating(queryset=item13_qs), transform=lambda x: x
269-
)
267+
self.assertSequenceEqual(list(rated_qs), list(self.rated_model.ratings.order_by_rating(queryset=item13_qs)))
270268

271269
# check that the scores are correct
272270
self.assertEqual(rated_qs[0].score, None)

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
bleach==6.2.0
2-
Django==5.0.14
2+
Django==5.1.11
33
dj-database-url==0.5.0
44
django-allauth==0.63.6
55
django-contrib-comments==2.2.0

0 commit comments

Comments
 (0)