Skip to content

Commit

Permalink
refactor: Remove unused simulation endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Nov 7, 2024
1 parent 2aeb5db commit 2545952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvdat/core/rest/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 2545952

Please sign in to comment.