diff options
author | Cefin <kevon@tuta.io> | 2022-02-07 10:58:24 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | 1ddb738376757581fc8ae4bb8207656953176a92 (patch) | |
tree | ba02c3d74f1360df5c8558a723f81d18a95bf232 /archaeological_operations/forms.py | |
parent | a2e7da8287f97d5a0595042ac143f118c75298f2 (diff) | |
download | Ishtar-1ddb738376757581fc8ae4bb8207656953176a92.tar.bz2 Ishtar-1ddb738376757581fc8ae4bb8207656953176a92.zip |
Operation - Parcels - Modify: adjustments par two #5227
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 5 |
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)") |