From 6d804b164c32fbce5370d98117d8d0b795e111f4 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 14 Oct 2021 15:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E5=AD=90=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/pm/urls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hb_server/apps/pm/urls.py b/hb_server/apps/pm/urls.py index 3f6db52..f6f6279 100644 --- a/hb_server/apps/pm/urls.py +++ b/hb_server/apps/pm/urls.py @@ -1,11 +1,12 @@ -from apps.pm.views import ProductionPlanViewSet, ResourceViewSet +from apps.pm.views import ProductionPlanViewSet, ResourceViewSet, SubProductionPlanViewSet from django.db.models import base from rest_framework import urlpatterns from django.urls import path, include from rest_framework.routers import DefaultRouter router = DefaultRouter() -router.register('productionplan', ProductionPlanViewSet, basename='productionplan') +router.register('production_plan', ProductionPlanViewSet, basename='production_plan') +router.register('subproduction_plan', SubProductionPlanViewSet, basename='subproduction_plan') router.register('resource', ResourceViewSet, basename='resource') urlpatterns = [ path('', include(router.urls)),