Commit c5e60f0f3062c460955e357b693f1e712dc485be

Authored by Zambom
1 parent 44ff8932

Adjusting goals with pendencies limit date error

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
pendencies/forms.py
... ... @@ -205,14 +205,14 @@ class PendenciesLimitedForm(forms.ModelForm):
205 205  
206 206 if not begin_date == ValueError and begin_date:
207 207 if begin_date.date() > limit_submission_date.date():
208   - self.add_error('begin_date', _('This input should be filled with a date equal or before the goals submission limit date.("%s")')%(subject.limit_submission_date.date()))
  208 + self.add_error('begin_date', _('This input should be filled with a date equal or before the goals submission limit date.("%s")')%(limit_submission_date.date()))
209 209  
210 210 if not end_date == ValueError and end_date:
211 211 if end_date.date() > limit_submission_date.date():
212   - self.add_error('end_date', _('This input should be filled with a date equal or before the goals submission limit date.("%s")')%(subject.limit_submission_date.date()))
  212 + self.add_error('end_date', _('This input should be filled with a date equal or before the goals submission limit date.("%s")')%(limit_submission_date.date()))
213 213  
214 214 if not limit_date == ValueError and limit_date:
215 215 if limit_date.date() > limit_submission_date.date():
216   - self.add_error('limit_date', _('This input should be filled with a date equal or before the goals submission limit date.("%s")')%(subject.limit_submission_date.date()))
  216 + self.add_error('limit_date', _('This input should be filled with a date equal or before the goals submission limit date.("%s")')%(limit_submission_date.date()))
217 217  
218 218 return cleaned_data
... ...