mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-29 06:40:31 +00:00
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:
parent
d25b66662e
commit
6663813dc2
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ class LocationResource(PokeapiCommonViewset):
|
||||||
list_serializer_class = LocationSummarySerializer
|
list_serializer_class = LocationSummarySerializer
|
||||||
|
|
||||||
|
|
||||||
class LocationAreaResource(ListOrDetailSerialRelation):
|
class LocationAreaResource(ListOrDetailSerialRelation, viewsets.ReadOnlyModelViewSet):
|
||||||
|
|
||||||
queryset = LocationArea.objects.all()
|
queryset = LocationArea.objects.all()
|
||||||
serializer_class = LocationAreaDetailSerializer
|
serializer_class = LocationAreaDetailSerializer
|
||||||
|
|
Loading…
Reference in a new issue