from rest_framework import viewsets from right_tree.api.models import Plant from right_tree.api.serializers import PlantSerializer class PlantViewSet(viewsets.ModelViewSet): """ API endpoint that allows hours to be grouped or edited. """ queryset = Plant.objects.all() serializer_class = PlantSerializer