Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ch38610] Enable multi country last mile #3802

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/etools/applications/last_mile/views_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -38,7 +37,6 @@ class VisionIngestMaterialsApiView(APIView):
}

def post(self, request):
set_country('somalia')
materials_to_create = []
for material in request.data:
model_dict = {}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down