From a4684775714d6258b1efecef8e35277edb53337b Mon Sep 17 00:00:00 2001 From: smihalache06 Date: Tue, 17 Dec 2024 20:30:53 +0200 Subject: [PATCH] Enable multicountry for last mile --- src/etools/applications/last_mile/views_ext.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/etools/applications/last_mile/views_ext.py b/src/etools/applications/last_mile/views_ext.py index 81e46957d..effd0ab1c 100644 --- a/src/etools/applications/last_mile/views_ext.py +++ b/src/etools/applications/last_mile/views_ext.py @@ -10,7 +10,6 @@ from rest_framework.response import Response from rest_framework.views import APIView -from etools.applications.core.util_scripts import set_country from etools.applications.last_mile import models from etools.applications.last_mile.permissions import LMSMAPIPermission from etools.applications.organizations.models import Organization @@ -38,7 +37,6 @@ class VisionIngestMaterialsApiView(APIView): } def post(self, request): - set_country('somalia') materials_to_create = [] for material in request.data: model_dict = {} @@ -102,7 +100,6 @@ class VisionLMSMExport(APIView): permission_classes = (LMSMAPIPermission,) def get(self, request, *args, **kwargs): - set_country('somalia') model_param = request.query_params.get('type') model_manager_map = { "transfer": models.Transfer.objects, @@ -229,7 +226,6 @@ def import_items(transfer_items): models.Item.objects.bulk_create(items_to_create) def post(self, request): - set_country('somalia') transfers_to_create = [] transfer_items = {} for row in request.data: