2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-10-24 09:57:40 +00:00

further fixes

This commit is contained in:
Matthias Mair
2025-10-13 13:06:07 +02:00
parent 3eb71063f4
commit d009feda39
2 changed files with 3 additions and 1 deletions

View File

@@ -78,7 +78,8 @@ class PathScopedMixin(serializers.Serializer):
# Remove filter args from kwargs to avoid issues with super().__init__
tgs_vals = {}
for k, v in self.filter_targets.items():
tgs_vals[k] = kwargs.pop(v['name'] or k, None)
pop_ref = v['name'] or k
tgs_vals[k] = kwargs.pop(pop_ref, None)
self.filter_target_values = tgs_vals
return kwargs

View File

@@ -1192,6 +1192,7 @@ class BuildListTest(BuildAPITest):
def test_output_options(self):
"""Test the output options for BuildOrderList list."""
test_cases = [
('user_detail', 'issued_by_detail'),
('user_detail', 'responsible_detail'),
('project_code_detail', 'project_code_detail'),
]