mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 16:18:03 +01:00
Fix managers
This commit is contained in:
parent
7d217307a4
commit
cb572621f2
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class PaymentMethodManager(models.Manager):
|
||||||
class PaymentMethod(Model):
|
class PaymentMethod(Model):
|
||||||
name = models.CharField(max_length=50, unique=True, verbose_name=_("name"))
|
name = models.CharField(max_length=50, unique=True, verbose_name=_("name"))
|
||||||
|
|
||||||
objects = PaymentMethodManager.from_queryset(PaymentMethodQuerySet)
|
objects = PaymentMethodManager.from_queryset(PaymentMethodQuerySet)()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _("payment method")
|
verbose_name = _("payment method")
|
||||||
|
@ -89,7 +89,7 @@ class Product(Model):
|
||||||
default=default_product_display_order, verbose_name=_("display order")
|
default=default_product_display_order, verbose_name=_("display order")
|
||||||
)
|
)
|
||||||
|
|
||||||
objects = ProductManager.from_queryset(ProductQuerySet)
|
objects = ProductManager.from_queryset(ProductQuerySet)()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ["display_order", "name"]
|
ordering = ["display_order", "name"]
|
||||||
|
|
Loading…
Reference in a new issue