diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-22 16:45:32 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-22 16:45:32 +0200 | 
| commit | e787e7183729358f1bc5054e4f4bb0a7a1a0d408 (patch) | |
| tree | 3cbb6ff45067d16d52de38102592c0fae75f5864 | |
| parent | 956a81f9342f4484dfa2b22e124eaa0f5daa87cd (diff) | |
| download | Ishtar-e787e7183729358f1bc5054e4f4bb0a7a1a0d408.tar.bz2 Ishtar-e787e7183729358f1bc5054e4f4bb0a7a1a0d408.zip | |
On search forms no field is required
| -rw-r--r-- | ishtar_common/forms.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 4e5a8bd1c..f252b83bc 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -159,6 +159,9 @@ class FormSet(BaseFormSet):  class TableSelect(forms.Form):      def __init__(self, *args, **kwargs):          super(TableSelect, self).__init__(*args, **kwargs) +        # no field is required for search +        for k in self.fields: +            self.fields[k].required = False          key = self.fields.keys()[0]          self.fields[key].widget.attrs['autofocus'] = 'autofocus' | 
