Skip to content

Commit 7e32451

Browse files
committed
Add find_all to NodeModulesFinder find
The `all` parameter is deprecated and replaced by `find_all` as of django 5.2 See also django/django@0fdcf10 django/django@8719a61
1 parent d3aaee8 commit 7e32451

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

django_node_assets/finders.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,12 @@ class NodeModulesFinder(BaseFinder):
7575
"node_modules",
7676
]
7777

78-
def find(self, path, all=False):
78+
def find(self, path, find_all=False, **kwargs):
79+
find_all = find_all or kwargs.get("all", False)
7980
matches = []
8081
if self.storage.exists(path):
8182
matched_path = self.storage.path(path)
82-
if not all:
83+
if not find_all:
8384
return matched_path
8485
matches.append(matched_path)
8586
return matches

0 commit comments

Comments
 (0)