From 6663813dc27daf5d04c413e5ebc755324fe7fcf5 Mon Sep 17 00:00:00 2001 From: Charles Marttinen Date: Thu, 18 Oct 2018 14:21:53 -0400 Subject: [PATCH] fix: Add LocationArea back to REST API LocationArea is a special case that was missed when getting rid of the hit counter. --- pokemon_v2/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemon_v2/api.py b/pokemon_v2/api.py index 4252192d..261189ee 100644 --- a/pokemon_v2/api.py +++ b/pokemon_v2/api.py @@ -224,7 +224,7 @@ class LocationResource(PokeapiCommonViewset): list_serializer_class = LocationSummarySerializer -class LocationAreaResource(ListOrDetailSerialRelation): +class LocationAreaResource(ListOrDetailSerialRelation, viewsets.ReadOnlyModelViewSet): queryset = LocationArea.objects.all() serializer_class = LocationAreaDetailSerializer