1616class PartCategoryParameterTemplate (inventree .base .InventreeObject ):
1717 """A model which link a ParameterTemplate to a PartCategory"""
1818
19- URL = 'part/category/parameters'
19+ URL = 'part/category/parameters/ '
2020
2121 def getCategory (self ):
2222 """Return the referenced PartCategory instance"""
@@ -30,7 +30,7 @@ def getTemplate(self):
3030class PartCategory (inventree .base .MetadataMixin , inventree .base .InventreeObject ):
3131 """ Class representing the PartCategory database model """
3232
33- URL = 'part/category'
33+ URL = 'part/category/ '
3434
3535 def getParts (self , ** kwargs ):
3636 return Part .list (self ._api , category = self .pk , ** kwargs )
@@ -68,7 +68,7 @@ class Part(
6868):
6969 """ Class representing the Part database model """
7070
71- URL = 'part'
71+ URL = 'part/ '
7272 MODEL_TYPE = 'part'
7373
7474 def getCategory (self ):
@@ -149,7 +149,7 @@ def getRequirements(self):
149149class PartTestTemplate (inventree .base .MetadataMixin , inventree .base .InventreeObject ):
150150 """ Class representing a test template for a Part """
151151
152- URL = 'part/test-template'
152+ URL = 'part/test-template/ '
153153
154154 @classmethod
155155 def generateTestKey (cls , test_name ):
@@ -183,7 +183,7 @@ class BomItem(
183183):
184184 """ Class representing the BomItem database model """
185185
186- URL = 'bom'
186+ URL = 'bom/ '
187187
188188
189189class BomItemSubstitute (
@@ -192,13 +192,13 @@ class BomItemSubstitute(
192192):
193193 """Class representing the BomItemSubstitute database model"""
194194
195- URL = "bom/substitute"
195+ URL = "bom/substitute/ "
196196
197197
198198class InternalPrice (inventree .base .InventreeObject ):
199199 """ Class representing the InternalPrice model """
200200
201- URL = 'part/internal-price'
201+ URL = 'part/internal-price/ '
202202
203203 @classmethod
204204 def setInternalPrice (cls , api , part , quantity : int , price : float ):
@@ -219,7 +219,7 @@ def setInternalPrice(cls, api, part, quantity: int, price: float):
219219class SalePrice (inventree .base .InventreeObject ):
220220 """ Class representing the SalePrice model """
221221
222- URL = 'part/sale-price'
222+ URL = 'part/sale-price/ '
223223
224224 @classmethod
225225 def setSalePrice (cls , api , part , quantity : int , price : float , price_currency : str ):
@@ -241,7 +241,7 @@ def setSalePrice(cls, api, part, quantity: int, price: float, price_currency: st
241241class PartRelated (inventree .base .InventreeObject ):
242242 """ Class representing a relationship between parts"""
243243
244- URL = 'part/related'
244+ URL = 'part/related/ '
245245
246246 @classmethod
247247 def add_related (cls , api , part1 , part2 ):
@@ -266,7 +266,7 @@ def add_related(cls, api, part1, part2):
266266
267267class Parameter (inventree .base .InventreeObject ):
268268 """class representing the Parameter database model """
269- URL = 'part/parameter'
269+ URL = 'part/parameter/ '
270270
271271 def getunits (self ):
272272 """ Get the units for this parameter """
@@ -277,4 +277,4 @@ def getunits(self):
277277class ParameterTemplate (inventree .base .InventreeObject ):
278278 """ class representing the Parameter Template database model"""
279279
280- URL = 'part/parameter/template'
280+ URL = 'part/parameter/template/ '
0 commit comments