Skip to content

Commit 06d345c

Browse files
author
Mark Bird
committed
Add Django 5.2 and 6.0 to test matrix, remove Python 3.8 and 3.9
1 parent 92d1783 commit 06d345c

3 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
python: ["3.8", "3.9", "3.10", "3.11"]
13-
django: ["3.2", "4.0", "4.1", "4.2"]
12+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
13+
django: ["4.2", "5.2", "6.0"]
1414
exclude:
15+
- python: "3.13"
16+
django: "4.2"
17+
- python: "3.14"
18+
django: "4.2"
19+
- python: "3.10"
20+
django: "6.0"
1521
- python: "3.11"
16-
django: "3.2"
17-
- python: "3.11"
18-
django: "4.0"
22+
django: "6.0"
1923

2024
steps:
21-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v6
2226
- name: Set up Python ${{ matrix.python }}
23-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v6
2428
with:
2529
python-version: ${{ matrix.python }}
2630
- name: Install package

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ django-zen-queries
77

88
Gives you control over which parts of your code are allowed to run queries, and which aren't.
99

10-
Tested against Django 3.2, 4.0, 4.1 and 4.2 on Python 3.8, 3.9, 3.10 and 3.11.
10+
Tested against Django 4.2, 5.2 and 6.0 on Python 3.10, 3.11, 3.12, 3.13 and 3.14.
1111

1212
#### Testimonial
1313

@@ -131,7 +131,7 @@ def validate_xyz(pizzas):
131131
...
132132
```
133133

134-
This also works with Django's [`method_decorator`](https://docs.djangoproject.com/en/3.0/topics/class-based-views/intro/#decorating-the-class) utility.
134+
This also works with Django's [`method_decorator`](https://docs.djangoproject.com/en/6.0/topics/class-based-views/intro/#decorating-the-class) utility.
135135

136136
### Extra tools
137137

@@ -191,11 +191,11 @@ There are {{ pizzas.count }} pizzas.
191191

192192
### Permissions gotcha
193193

194-
Accessing permissions in your templates (via the `{{ perms }}` template variable) can be a source of queries at template-render time. Fortunately, Django's permission checks are [cached by the `ModelBackend`](https://docs.djangoproject.com/en/2.2/topics/auth/default/#permission-caching), which can be pre-populated by calling `request.user.get_all_permissions()` in the view, before rendering the template.
194+
Accessing permissions in your templates (via the `{{ perms }}` template variable) can be a source of queries at template-render time. Fortunately, Django's permission checks are [cached by the `ModelBackend`](https://docs.djangoproject.com/en/6.0/topics/auth/default/#permission-caching), which can be pre-populated by calling `request.user.get_all_permissions()` in the view, before rendering the template.
195195

196196
### How does it work?
197197

198-
It uses the [Database Instrumentation](https://docs.djangoproject.com/en/2.2/topics/db/instrumentation/) features introduced in Django 2.0.
198+
It uses the [Database Instrumentation](https://docs.djangoproject.com/en/6.0/topics/db/instrumentation/) features introduced in Django 2.0.
199199

200200
### Installation
201201

dev-requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
black==22.6.0
2-
djangorestframework==3.13.1
3-
flake8==4.0.1
4-
isort==5.10.1
1+
black==26.1.0
2+
djangorestframework==3.16.1
3+
flake8==7.3.0
4+
isort==8.0.0

0 commit comments

Comments
 (0)