Skip to content

Commit ce339e4

Browse files
committed
Update django-import-export deps
These have gotten very out of date and it seems like dependabot hasn't worked on them.
1 parent d563dec commit ce339e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pulpcore/app/importexport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _write_export(the_tarfile, resource, dest_dir=None):
5353
def process_batch(batch):
5454
model = resource.queryset.model
5555
queryset = model.objects.filter(pk__in=batch)
56-
dataset = resource.export(queryset)
56+
dataset = resource.export(queryset=queryset)
5757
# Strip "[" and "]" as we are writing the dataset in batch
5858
temp_file.write(dataset.json.lstrip("[").rstrip("]"))
5959

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies = [
3838
"Django~=4.2.0", # LTS version, switch only if we have a compelling reason to",
3939
"django-filter>=23.1,<=25.1",
4040
"django-guid>=3.3,<=3.5.1",
41-
"django-import-export>=2.9,<3.4.0",
41+
"django-import-export>=4.3,<5.0",
4242
"django-lifecycle>=1.0,<=1.2.4",
4343
"djangorestframework>=3.14.0,<=3.15.2",
4444
"djangorestframework-queryfields>=1.0,<=1.1.0",
@@ -63,7 +63,7 @@ dependencies = [
6363
"python-gnupg>=0.5,<=0.5.4",
6464
"PyYAML>=5.1.1,<=6.0.2",
6565
"redis>=4.3,<5.2.2",
66-
"tablib<3.6.0",
66+
"tablib>=3.7.0,<3.9.0",
6767
"url-normalize>=1.4.3,<=1.4.3",
6868
"uuid6>=2023.5.2,<=2024.7.10",
6969
"whitenoise>=5.0,<6.10.0",

0 commit comments

Comments
 (0)