mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 19:50:59 +00:00
Exclude metadata from StockLocation and StockItem model resource class
This commit is contained in:
@ -344,6 +344,13 @@ class StockItemListTest(StockAPITestCase):
|
||||
for h in headers:
|
||||
self.assertIn(h, dataset.headers)
|
||||
|
||||
excluded_headers = [
|
||||
'metadata',
|
||||
]
|
||||
|
||||
for h in excluded_headers:
|
||||
self.assertNotIn(h, dataset.headers)
|
||||
|
||||
# Now, add a filter to the results
|
||||
dataset = self.export_data({'location': 1})
|
||||
|
||||
|
Reference in New Issue
Block a user