Skip to content

Commit 8da2aee

Browse files
committed
Fix Django 6.0 compatibility issues
- Set TASKS to django_tasks ImmediateBackend so modelsearch keeps working (Django 6.0 ships its own django.tasks.* with a different Task signature that lacks `enqueue_on_commit`, which broke the modelsearch @task decorator). - Bump django-autocomplete-light from 3.9.4 to 4.0.0 (3.9.4 imports the removed `django.utils.itercompat` module).
1 parent f4acd2d commit 8da2aee

3 files changed

Lines changed: 94 additions & 41 deletions

File tree

backend/pycon/settings/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@
379379
}
380380
}
381381

382+
TASKS = {
383+
"default": {
384+
"BACKEND": "django_tasks.backends.immediate.ImmediateBackend",
385+
}
386+
}
387+
382388
WAGTAIL_SITE_NAME = "cms"
383389
WAGTAIL_I18N_ENABLED = True
384390

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dependencies = [
6464
"countries<1.0.0,>=0.2.0",
6565
"django-ses==4.1.1",
6666
"hashids<2.0.0,>=1.2.0",
67-
"django-autocomplete-light==3.9.4",
67+
"django-autocomplete-light==4.0.0",
6868
"django-queryinspect<2.0.0,>=1.1.0",
6969
"lxml==6.1.0",
7070
"unidecode<2.0.0,>=1.1.1",

0 commit comments

Comments
 (0)