summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2022-02-07 10:58:24 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:21:00 +0100
commitb9cc1cbef245a943b4b10a304706a55dfe06b488 (patch)
treeba02c3d74f1360df5c8558a723f81d18a95bf232 /archaeological_operations/forms.py
parenteb16eddc8b16f9bfce7f86b9d44d800966eb455f (diff)
downloadIshtar-b9cc1cbef245a943b4b10a304706a55dfe06b488.tar.bz2
Ishtar-b9cc1cbef245a943b4b10a304706a55dfe06b488.zip
Operation - Parcels - Modify: adjustments par two #5227
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 2151aaee0..18a83f033 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -116,6 +116,7 @@ class ParcelForm(IshtarForm):
return
if not self.cleaned_data or (DELETION_FIELD_NAME in self.cleaned_data
and self.cleaned_data[DELETION_FIELD_NAME]):
+ print("Youpitralala")
return
if (not self.cleaned_data.get('parcel_number') or
not self.cleaned_data.get('section')) and \
@@ -1150,13 +1151,13 @@ class SelectedParcelForm(IshtarForm):
SelectedParcelFormSet = formset_factory(SelectedParcelForm, can_delete=True,
- formset=ParcelFormSet, extra=3)
+ formset=ParcelFormSet)
SelectedParcelFormSet.form_label = _("Parcels")
SelectedParcelFormSet.form_admin_name = _("Operation - 050 - Parcels")
SelectedParcelFormSet.form_slug = "operation-050-parcels"
SelectedParcelGeneralFormSet = formset_factory(ParcelForm, can_delete=True,
- formset=ParcelFormSet, extra=3)
+ formset=ParcelFormSet)
SelectedParcelGeneralFormSet.form_label = _("Parcels")
SelectedParcelGeneralFormSet.form_admin_name = _(
"Operation - 050 - Parcels (2)")