Source code for shuup.testing.extend_classes

from shuup.core.models import ProductMode
from shuup.front.forms.order_forms import ProductOrderForm


[docs] class DifferentProductOrderForm(ProductOrderForm): template_name = "shuup_testing/different_order_form.jinja"
[docs] def is_compatible(self): return self.product.mode == ProductMode.SUBSCRIPTION