mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-24 09:57:40 +00:00
further fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user