diff options
| author | A.Avenel <avenel.alexandre@gmail.com> | 2012-11-26 21:52:25 +0100 |
|---|---|---|
| committer | A.Avenel <avenel.alexandre@gmail.com> | 2012-11-26 21:52:25 +0100 |
| commit | 8b114c5718e332553a3bb9718c707365f7ab5a0a (patch) | |
| tree | 674cc80111db5b92854872c32e0a7815c1ae8871 /budget/forms.py | |
| parent | ee7459025d031b8f47fd38059ad2f1db09435ac3 (diff) | |
| download | ihatemoney-mirror-8b114c5718e332553a3bb9718c707365f7ab5a0a.zip ihatemoney-mirror-8b114c5718e332553a3bb9718c707365f7ab5a0a.tar.gz ihatemoney-mirror-8b114c5718e332553a3bb9718c707365f7ab5a0a.tar.bz2 | |
update for "create archive" interface
Diffstat (limited to 'budget/forms.py')
| -rw-r--r-- | budget/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/budget/forms.py b/budget/forms.py index 5d7c18b..f243c39 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -187,6 +187,6 @@ class InviteForm(Form): class CreateArchiveForm(Form): - start_date = DateField(_("Start date"), validators=[Required(), ]) - end_date = DateField(_("End date"), validators=[Required(), ]) - name = TextField(_("Name for this archive (optional)")) + name = TextField(_("Name for this archive (optional)"), validators=[]) + start_date = DateField(_("Start date"), validators=[Required()]) + end_date = DateField(_("End date"), validators=[Required()], default=datetime.now) |
