summaryrefslogtreecommitdiff
path: root/ishtar_common/forms.py
diff options
context:
space:
mode:
authorroot <root@viserion.(none)>2013-04-04 22:43:13 +0000
committerroot <root@viserion.(none)>2013-04-04 22:43:13 +0000
commit0b9a486b5e79d36c7eb7fa9592e1ebb4ec9ae668 (patch)
treea2c624b1ce76c6d57a8a156766e4863710d8ae19 /ishtar_common/forms.py
parent199f535e39880d6ddbbe6a068378fec7ff9fc084 (diff)
parentb2a879890cef5721accff66904be478de488b120 (diff)
downloadIshtar-0b9a486b5e79d36c7eb7fa9592e1ebb4ec9ae668.tar.bz2
Ishtar-0b9a486b5e79d36c7eb7fa9592e1ebb4ec9ae668.zip
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r--ishtar_common/forms.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py
index d66d6d4cc..cb007442e 100644
--- a/ishtar_common/forms.py
+++ b/ishtar_common/forms.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2011 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -101,6 +101,10 @@ class FormSet(BaseFormSet):
form.fields[DELETION_FIELD_NAME].label = ''
form.fields[DELETION_FIELD_NAME].widget = widgets.DeleteWidget()
+class TableSelect(forms.Form):
+ def get_input_ids(self):
+ return self.fields.keys()
+
def get_now():
format = formats.get_format('DATE_INPUT_FORMATS')[0]
value = datetime.datetime.now().strftime(format)