# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from django.utils.translation import ugettext_lazy as _
import shuup.apps
# TODO: Document how to create custom pricing modules (Refs SHUUP-514)
[docs]class CustomerGroupPricingAppConfig(shuup.apps.AppConfig):
name = __name__
verbose_name = _("Shuup Customer Group Pricing")
label = "shuup_customer_group_pricing"
provides = {
"pricing_module": [__name__ + ".module:CustomerGroupPricingModule"],
"discount_module": [__name__ + ".module:CustomerGroupDiscountModule"],
"admin_product_form_part": [
__name__ + ".admin_form_part:CustomerGroupPricingFormPart",
__name__ + ".admin_form_part:CustomerGroupPricingDiscountFormPart",
],
}
[docs] def ready(self):
# connect signals
import shuup.customer_group_pricing.signal_handers # noqa F401
default_app_config = __name__ + ".CustomerGroupPricingAppConfig"