diff --git a/registrasion/controllers/category.py b/registrasion/controllers/category.py index 7bd08283..5a6b4a68 100644 --- a/registrasion/controllers/category.py +++ b/registrasion/controllers/category.py @@ -2,9 +2,11 @@ from .product import ProductController from registrasion import models as rego + class AllProducts(object): pass + class CategoryController(object): @classmethod diff --git a/registrasion/tests/test_cart.py b/registrasion/tests/test_cart.py index 7c51c131..bc58d5fb 100644 --- a/registrasion/tests/test_cart.py +++ b/registrasion/tests/test_cart.py @@ -293,10 +293,11 @@ class BasicCartTests(RegistrationCartTestCase): def __available_products_test(self, item, quantity): self.set_limits() - get_prods = lambda: ProductController.available_products( - self.USER_1, - products=[self.PROD_2, self.PROD_3, self.PROD_4], - ) + def get_prods(): + return ProductController.available_products( + self.USER_1, + products=[self.PROD_2, self.PROD_3, self.PROD_4], + ) current_cart = CartController.for_user(self.USER_1) prods = get_prods() diff --git a/registrasion/views.py b/registrasion/views.py index 812689f7..2485b438 100644 --- a/registrasion/views.py +++ b/registrasion/views.py @@ -243,7 +243,7 @@ def product_category(request, category_id): if not products: messages.warning( request, - "There are no products available from category: "+ category.name, + "There are no products available from category: " + category.name, ) return redirect("dashboard")