2025-03-23 21:24:08 +10:00

8 lines
290 B
Python

from rest_framework import viewsets
from .models import ProductionPlan
from .serializers import ProductionPlanSerializer
class ProductionPlanViewSet(viewsets.ModelViewSet):
queryset = ProductionPlan.objects.all().order_by('-created_at')
serializer_class = ProductionPlanSerializer