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

ePD: remove gateway type reference #3367

Open
wants to merge 1 commit into
base: epd
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
9 changes: 4 additions & 5 deletions src/etools/applications/partners/views/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from rest_framework.views import APIView
from unicef_attachments.models import FileType as AttachmentFileType
from unicef_djangolib.fields import CURRENCIES
from unicef_locations.models import GatewayType

from etools.applications.attachments.models import AttachmentFlat
from etools.applications.funds.models import FundsReservationItem
from etools.applications.locations.models import Location
from etools.applications.partners.models import (
Agreement,
AgreementAmendment,
Expand Down Expand Up @@ -184,11 +184,10 @@ def get(self, request):
),
'currencies': choices_to_json_ready(CURRENCIES),
'local_currency': self.get_local_currency(),
'location_types': GatewayType.objects.values(
'id',
'name',
'location_types': Location.objects.order_by('admin_level').values(
'admin_level',
).order_by('id'),
'admin_level_name'
).distinct(),
'attachment_types': AttachmentFileType.objects.values_list(
"label",
flat=True,
Expand Down