From 419fd5f0d3eb6226920850b37e0fffb18feca2ee Mon Sep 17 00:00:00 2001 From: JamesRamm Date: Thu, 8 Jun 2017 14:00:21 +0100 Subject: [PATCH] Correct error in shipping_countries method --- longclaw/longclawshipping/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/longclaw/longclawshipping/api.py b/longclaw/longclawshipping/api.py index 5556bfe..e80708d 100644 --- a/longclaw/longclawshipping/api.py +++ b/longclaw/longclawshipping/api.py @@ -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"])