8 lines
290 B
Python
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
|