From f1f9d2f5de328dec8fbd51bd9fb3ab92c6f05df5 Mon Sep 17 00:00:00 2001 From: Cefin Date: Mon, 24 Jan 2022 15:28:18 +0100 Subject: Operation - Parcels - Modify: ManagementForm Issue part two #5227 --- archaeological_operations/views.py | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'archaeological_operations/views.py') diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index da46d9e17..a40f8f9ef 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -421,7 +421,7 @@ def operation_modify_parcels(request, pk): if request.method == 'POST': #TODO print(request.POST) - # formset = formset_class(request.POST or None, request.FILES or None) + formset = formset_class(request.POST or None, request.FILES or None) if formset.is_valid(): print(formset.cleaned_data) post_data = request.POST.copy() @@ -465,27 +465,6 @@ def operation_modify_parcels(request, pk): }) -# class ParcelFormView(QAItemForm): -# template_name = 'ishtar/forms/operation_modify_parcels.html' -# form_class = SelectedParcelFormSet -# base_url = "operation-parcels-modify" -# model = models.Operation -# -# def get_form_kwargs(self): -# kwargs = super(ParcelFormView, self).get_form_kwargs() -# kwargs["user"] = self.request.user -# return kwargs -# -# def form_valid(self, form): -# form.save() -# return HttpResponseRedirect(reverse("success")) -# -# def get_context_data(self, **kwargs): -# data = super(ParcelFormView, self).get_context_data(**kwargs) -# data["action_name"] = _("Modify parcels") -# return data - - # archaeological sites -- cgit v1.2.3