summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
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
commit687b849f94c43d5c6ff2bf40d9e560b2e1f68546 (patch)
tree60e10a176cd1fbbe0afb151c1ab3fca7ad515fac /archaeological_operations/forms.py
parent9a33d0958d9cda16b8e0f2e3ce8191c6749e0b36 (diff)
downloadIshtar-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.py2
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