fix: Add LocationArea back to REST API

LocationArea is a special case that was missed when getting rid of the
hit counter.
This commit is contained in:
Charles Marttinen 2018-10-18 14:21:53 -04:00 committed by Charles Marttinen
parent d25b66662e
commit 6663813dc2

View file

@ -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