Revision 05617ab9 snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
780 | 780 |
def clean_start_date(self): |
781 | 781 |
start_date = self.cleaned_data.get('start_date') |
782 | 782 |
if not self.precursor_application: |
783 |
if start_date and (start_date - datetime.now()).days < 0:
|
|
783 |
if start_date and (start_date - datetime.now()).days < -1:
|
|
784 | 784 |
raise forms.ValidationError( |
785 | 785 |
_(astakos_messages.INVALID_PROJECT_START_DATE)) |
786 | 786 |
return start_date |
Also available in: Unified diff