From 254595214f478ebbae0bb9de27903c50f07a70d6 Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Mon, 28 Oct 2024 16:26:44 -0400 Subject: [PATCH] refactor: Remove unused simulation endpoints --- uvdat/core/rest/simulations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uvdat/core/rest/simulations.py b/uvdat/core/rest/simulations.py index 643da989..18c08c9e 100644 --- a/uvdat/core/rest/simulations.py +++ b/uvdat/core/rest/simulations.py @@ -5,7 +5,7 @@ from django.http import HttpResponse from rest_framework.decorators import action from rest_framework.serializers import ModelSerializer -from rest_framework.viewsets import ModelViewSet +from rest_framework.viewsets import GenericViewSet from uvdat.core.models import Project from uvdat.core.models.simulations import AVAILABLE_SIMULATIONS, SimulationResult @@ -68,7 +68,7 @@ def get_available_simulations(project_id: int): return sims -class SimulationViewSet(ModelViewSet): +class SimulationViewSet(GenericViewSet): queryset = SimulationResult.objects.all() serializer_class = uvdat_serializers.SimulationResultSerializer permission_classes = [GuardianPermission]