Revision ec2e67f4 snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
64 | 64 |
RECAPTCHA_ENABLED, DEFAULT_CONTACT_EMAIL, LOGGING_LEVEL, |
65 | 65 |
PASSWORD_RESET_EMAIL_SUBJECT, NEWPASSWD_INVALIDATE_TOKEN, |
66 | 66 |
MODERATION_ENABLED, PROJECT_MEMBER_JOIN_POLICIES, |
67 |
PROJECT_MEMBER_LEAVE_POLICIES, EMAILCHANGE_ENABLED) |
|
67 |
PROJECT_MEMBER_LEAVE_POLICIES, EMAILCHANGE_ENABLED, |
|
68 |
RESOURCES_PRESENTATION_DATA) |
|
68 | 69 |
from astakos.im.widgets import DummyWidget, RecaptchaWidget |
69 | 70 |
from astakos.im.functions import ( |
70 | 71 |
send_change_email, submit_application, accept_membership_checks) |
... | ... | |
858 | 859 |
d.update(dict(service=s, resource=r, uplimit=None)) |
859 | 860 |
append(d) |
860 | 861 |
|
862 |
ordered_keys = RESOURCES_PRESENTATION_DATA['resources_order'] |
|
863 |
policies = sorted(policies, key=lambda r:ordered_keys.index(r['str_repr'])) |
|
861 | 864 |
return policies |
862 | 865 |
|
863 | 866 |
def save(self, commit=True): |
Also available in: Unified diff