diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-28 14:41:04 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-28 14:41:52 +0100 |
commit | 687b849f94c43d5c6ff2bf40d9e560b2e1f68546 (patch) | |
tree | 60e10a176cd1fbbe0afb151c1ab3fca7ad515fac /archaeological_operations/forms.py | |
parent | 9a33d0958d9cda16b8e0f2e3ce8191c6749e0b36 (diff) | |
download | Ishtar-687b849f94c43d5c6ff2bf40d9e560b2e1f68546.tar.bz2 Ishtar-687b849f94c43d5c6ff2bf40d9e560b2e1f68546.zip |
Autofocus on full text input on parcel form (refs #1463)
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 6e025c4a4..9f8ab00fe 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -113,8 +113,10 @@ class ParcelFormSet(FormSet): def __init__(self, *args, **kwargs): super(FormSet, self).__init__(*args, **kwargs) + self.extra_form = None if self.forms[0].__class__.__name__ == 'ParcelForm': self.selection_form = ParcelSelectionForm() + self.extra_form = self.selection_form def as_table(self): # add dynamic widget |