Revision 1b3398a0 snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
91 | 91 |
super(LocalUserCreationForm, self).__init__(*args, **kwargs) |
92 | 92 |
self.fields.keyOrder = ['email', 'first_name', 'last_name', |
93 | 93 |
'password1', 'password2'] |
94 |
if get_latest_terms(): |
|
95 |
self.fields.keyOrder.append('has_signed_terms') |
|
94 |
|
|
96 | 95 |
if RECAPTCHA_ENABLED: |
97 | 96 |
self.fields.keyOrder.extend(['recaptcha_challenge_field', |
98 | 97 |
'recaptcha_response_field',]) |
99 |
|
|
98 |
if get_latest_terms(): |
|
99 |
self.fields.keyOrder.append('has_signed_terms') |
|
100 |
|
|
100 | 101 |
if 'has_signed_terms' in self.fields: |
101 | 102 |
# Overriding field label since we need to apply a link |
102 | 103 |
# to the terms within the label |
Also available in: Unified diff