Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
CP-236 Country dataset delete functionality
Browse files Browse the repository at this point in the history
- [x] Deleted temp table data, tender, goodsservices, red-flag, equity
- [x] Added confirmation box while deleting the dataset.
- [x] Contract api and contract-status fixes
  • Loading branch information
Suyoj Man Tamrakar committed Apr 5, 2021
1 parent 863e5e9 commit e5b9660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions country/serializers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.db.models import Sum
from rest_framework import serializers
from rest_framework_serializer_extensions.serializers import SerializerExtensionsMixin

from .models import Buyer, Country, Language, OverallSummary, RedFlag, Supplier, Tender


Expand Down Expand Up @@ -434,6 +435,7 @@ def get_buyer_code(self, obj):
def get_goods_services(self, obj):
a = obj.goods_services.all().values(
"goods_services_category__category_name",
"contract_desc",
"contract_value_usd",
"quantity_units",
"ppu_including_vat",
Expand Down
2 changes: 1 addition & 1 deletion vizualization/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def get(self, request):

if country:
try:
country_res = Country.objects.get(name=country)
country_res = Country.objects.get(country_code_alpha_2=country)
currency_code = country_res.currency
except Exception as e:
print(e)
Expand Down

0 comments on commit e5b9660

Please sign in to comment.