Add manager class for StockItem

This commit is contained in:
Oliver
2021-07-21 09:28:58 +10:00
parent 5e2145e151
commit 598ea11211
4 changed files with 27 additions and 26 deletions
+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