Correct error in shipping_countries method

pull/77/head
JamesRamm 2017-06-08 14:00:21 +01:00
rodzic e6944db811
commit 419fd5f0d3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ def shipping_cost(request):
def shipping_countries(request):
''' Get all shipping countries
'''
queryset = models.Country.exclude(shippingrate=None)
queryset = models.Country.objects.exclude(shippingrate=None)
return Response(data=queryset, status=status.HTTP_200_OK)
@api_view(["GET"])