equal
deleted
inserted
replaced
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 |