Skip to content

Commit 70c670b

Browse files
committed
Add changes required by django 5
The changes were tested against Django 5 but are compatible with Django 4: * bump django-guid * bump django-filter * shell.Command override Co-authored-by: Matthias Dellweg <[email protected]> Please enter the commit message for your changes. Lines starting
1 parent 60b5b7e commit 70c670b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from django.core.management.commands import shell
2+
3+
4+
class Command(shell.Command):
5+
def get_auto_imports(self):
6+
# disable automatic imports. See
7+
# https://docs.djangoproject.com/en/5.2/howto/custom-shell/
8+
return None

pulpcore/app/serializers/domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import json
33

44
from django.conf import settings
5-
from django.core.files.storage import import_string
5+
from django.utils.module_loading import import_string
66
from django.core.exceptions import ImproperlyConfigured
77
from drf_spectacular.types import OpenApiTypes
88
from drf_spectacular.utils import extend_schema_field

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ dependencies = [
3232
"backoff>=2.1.2,<2.3", # Looks like only bugfixes in z-Stream.
3333
"click>=8.1.0,<8.3", # Uses milestone.feature.fix https://palletsprojects.com/versions .
3434
"cryptography>=44.0.3,<47.0", # SemVer compatible https://cryptography.io/en/latest/api-stability/#versioning .
35-
"Django~=4.2.0", # LTS version, switch only if we have a compelling reason to".
36-
"django-filter>=23.1,<=25.1", # Looks like CalVer.
35+
"Django>=4.2.24,<5.3", # LTS version, switch only if we have a compelling reason to".
36+
"django-filter>=23.1,<=25.1", # Uses CalVer, not released often https://github.com/carltongibson/django-filter
3737
"django-guid>=3.3.0,<3.6", # Looks like only bugfixes in z-Stream.
3838
"django-import-export>=2.9,<3.4.0",
3939
"django-lifecycle>=1.0,<=1.2.4",

0 commit comments

Comments
 (0)