Commits

Arnaud Grausem  committed 678d154

Bug fixed: bad use of the dateutil library

  • Participants
  • Parent commits ef3bd47
  • Branches stable

Comments (0)

Files changed (1)

File thot/report/forms.py

         # defines begin date and end date initial data for the form
         # dynamically for different instance of the form
         today = date.today()
-        self.fields['begin_date'].initial = today+relativedelta(month=-1)
+        self.fields['begin_date'].initial = today+relativedelta(months=-1)
         self.fields['end_date'].initial = today
     
     def report_data(self):