def get_definitions(self, **kwargs): from shuup.gdpr.models import GDPRSettings if not GDPRSettings.get_for_shop(self.request.shop).enabled: return [] return [ FormDefinition('agreement', CompanyAgreementForm, required=True) ]
def get_definitions(self, **kwargs): return [FormDefinition(self.test_name, self.test_form, required=True)]