Apply review comments

This commit is contained in:
imperosol
2024-12-17 17:23:13 +01:00
parent 47876e3971
commit 8d643fc6b4
5 changed files with 37 additions and 17 deletions

View File

@ -109,7 +109,7 @@ class ProductController(ControllerBase):
@api_controller("/product-type", permissions=[IsCounterAdmin])
class ProductTypeController(ControllerBase):
@route.get("", response=list[ProductTypeSchema], url_name="fetch-product-types")
@route.get("", response=list[ProductTypeSchema], url_name="fetch_product_types")
def fetch_all(self):
return ProductType.objects.order_by("order")