Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sets default values for month/year at Usage Form in overview page
Fixes bug 931227. The problem is with using 'initial' values for a bound form. These are mutually exclusive. Another solution is to use only unbound form, with setting: forms.DateForm(initial={'month': self.request.GET.get('month', self.today.month,..) but in that case all further validations for the form will be disregarded(although there is no validation atm) Change-Id: Ie4565b03a1414a0008abfd793d9ec4a181e0aa24
- Loading branch information