app/soc/logic/cleaning.py
changeset 1773 ad930f979ed9
parent 1768 3177f83c1e50
child 1935 99ec4bbd70f5
equal deleted inserted replaced
1772:1ba548e57ab2 1773:ad930f979ed9
   135   def wrapper(self):
   135   def wrapper(self):
   136     """Decorator wrapper method.
   136     """Decorator wrapper method.
   137     """
   137     """
   138     agrees_to_tos = self.cleaned_data.get(field_name)
   138     agrees_to_tos = self.cleaned_data.get(field_name)
   139 
   139 
   140     if not site_logic.getToS(site_logic.logic.getSingleton()):
   140     if not site_logic.getToS(site_logic.getSingleton()):
   141       return agrees_to_tos
   141       return agrees_to_tos
   142 
   142 
   143     # Site settings specify a site-wide ToS, so agreement is *required*
   143     # Site settings specify a site-wide ToS, so agreement is *required*
   144     if agrees_to_tos:
   144     if agrees_to_tos:
   145       return True
   145       return True