aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-09-09 19:14:19 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-09-09 19:14:19 +0200
commit801802836a648ac0865c1c932e3cf9a01e3a639e (patch)
treed2ee3ed47d6c3fe7c454ef00c6018a633660d9d7 /budget/forms.py
parent295beeade4e2238b7290940a348fe3a691336e38 (diff)
downloadihatemoney-mirror-801802836a648ac0865c1c932e3cf9a01e3a639e.zip
ihatemoney-mirror-801802836a648ac0865c1c932e3cf9a01e3a639e.tar.gz
ihatemoney-mirror-801802836a648ac0865c1c932e3cf9a01e3a639e.tar.bz2
Start working on archive management
Diffstat (limited to 'budget/forms.py')
-rw-r--r--budget/forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/budget/forms.py b/budget/forms.py
index 6272b7f..7ac48cc 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -100,3 +100,8 @@ class InviteForm(Form):
if not validator.regex.match(email):
raise ValidationError("The email %s is not valid" % email)
+
+class CreateArchiveForm(Form):
+ start_date = DateField("Start date", validators=[Required(),])
+ end_date = DateField("End date", validators=[Required(),])
+ name = TextField("Name for this archive (optional)")