Exemple #1
0
 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)
     ]
Exemple #2
0
 def get_definitions(self, **kwargs):
     return [FormDefinition(self.test_name, self.test_form, required=True)]