Revision 4a13d054 snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
259 | 259 |
|
260 | 260 |
super(ThirdPartyUserCreationForm, self).__init__(*args, **kwargs) |
261 | 261 |
|
262 |
if not get_latest_terms(): |
|
263 |
del self.fields['has_signed_terms'] |
|
264 |
|
|
262 | 265 |
if 'has_signed_terms' in self.fields: |
263 | 266 |
# Overriding field label since we need to apply a link |
264 | 267 |
# to the terms within the label |
... | ... | |
999 | 1002 |
|
1000 | 1003 |
|
1001 | 1004 |
def _init_extra_form_fields(self): |
1002 |
|
|
1005 |
|
|
1003 | 1006 |
|
1004 | 1007 |
if self.email_change: |
1005 | 1008 |
self.fields.update(self.email_change_form.fields) |
Also available in: Unified diff