Add manager class for StockItem

This commit is contained in:
Oliver committed 2021-07-21 09:28:58 +10:00
1 parent 5e2145e151
commit 598ea11211
4 files changed
+27 -26

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ class CategoryTest(TestCase):
""" Test that the Category parameters are correctly fetched """
# Check number of SQL queries to iterate other parameters
with self.assertNumQueries(3):
with self.assertNumQueries(7):
# Prefetch: 3 queries (parts, parameters and parameters_template)
fasteners = self.fasteners.prefetch_parts_parameters()
# Iterate through all parts and parameters