実運用のワークフロー(複数施肥計画混在・軽トラ複数回・肥料指定)に合わせ、 旧 DistributionPlan/Group/GroupField を DeliveryPlan/Group/GroupField/Trip/TripItem に置き換え。 施肥計画への直接FK廃止→年度ベースで全施肥計画を横断。 回ごとの日付記録、圃場の回間移動、対象肥料フィルタ、回ごとPDF出力に対応。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
616 B
Python
15 lines
616 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from . import views
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'fertilizers', views.FertilizerViewSet, basename='fertilizer')
|
|
router.register(r'plans', views.FertilizationPlanViewSet, basename='fertilization-plan')
|
|
router.register(r'delivery', views.DeliveryPlanViewSet, basename='delivery-plan')
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('candidate_fields/', views.CandidateFieldsView.as_view(), name='candidate-fields'),
|
|
path('calculate/', views.CalculateView.as_view(), name='fertilizer-calculate'),
|
|
]
|