Revision 8327782d snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
922 | 922 |
|
923 | 923 |
class Meta: |
924 | 924 |
model = ProjectDefinition |
925 |
exclude = ('resource_grants') |
|
926 |
|
|
925 |
exclude = ('resource_grants', 'serial') |
|
927 | 926 |
|
928 | 927 |
def clean(self): |
929 | 928 |
userid = self.data.get('user', None)[0] |
... | ... | |
976 | 975 |
precursor_application, |
977 | 976 |
commit |
978 | 977 |
) |
978 |
|
|
979 |
class ProjectSortForm(forms.Form): |
|
980 |
sorting = forms.ChoiceField( |
|
981 |
label='Sort by', |
|
982 |
choices=(('definition__name', 'Sort by Name'), |
|
983 |
('issue_date', 'Sort by Issue date'), |
|
984 |
('definition__start_date', 'Sort by Start Date'), |
|
985 |
('definition__end_date', 'Sort by End Date'), |
|
986 |
# ('approved_members_num', 'Sort by Participants'), |
|
987 |
('definition__member_accept_policy', 'Sort by Member Accept Policy'), |
|
988 |
('definition__member_reject_policy', 'Sort by Member Reject Policy') |
|
989 |
), |
|
990 |
required=True |
|
991 |
) |
Also available in: Unified diff