From cb572621f256aaadf309561756a106020c60273d Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 26 Apr 2022 22:56:03 +0200 Subject: [PATCH] Fix managers --- src/purchase/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/purchase/models.py b/src/purchase/models.py index b93a901..a274c13 100644 --- a/src/purchase/models.py +++ b/src/purchase/models.py @@ -41,7 +41,7 @@ class PaymentMethodManager(models.Manager): class PaymentMethod(Model): name = models.CharField(max_length=50, unique=True, verbose_name=_("name")) - objects = PaymentMethodManager.from_queryset(PaymentMethodQuerySet) + objects = PaymentMethodManager.from_queryset(PaymentMethodQuerySet)() class Meta: verbose_name = _("payment method") @@ -89,7 +89,7 @@ class Product(Model): default=default_product_display_order, verbose_name=_("display order") ) - objects = ProductManager.from_queryset(ProductQuerySet) + objects = ProductManager.from_queryset(ProductQuerySet)() class Meta: ordering = ["display_order", "name"]