update link registration site to executive dashboard
This commit is contained in:
1 parent
1e6f6b3b57
commit
d0d1ae7d24
26 files changed
+1044
-55
No files matched your search
@@ -1,6 +1,15 @@
|
||||
from django.urls import path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from apps.farms.views import CycleViewSet, FlockViewSet, KandangViewSet, SiteViewSet
|
||||
from apps.farms.views import (
|
||||
CycleViewSet,
|
||||
FlockViewSet,
|
||||
KandangViewSet,
|
||||
SiteViewSet,
|
||||
pusat_change_code,
|
||||
pusat_register,
|
||||
pusat_registration_status,
|
||||
)
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register("sites", SiteViewSet, basename="site")
|
||||
@@ -8,4 +17,9 @@ router.register("kandangs", KandangViewSet, basename="kandang")
|
||||
router.register("flocks", FlockViewSet, basename="flock")
|
||||
router.register("cycles", CycleViewSet, basename="cycle")
|
||||
|
||||
urlpatterns = router.urls
|
||||
urlpatterns = [
|
||||
path("pusat/register/", pusat_register, name="pusat-register"),
|
||||
path("pusat/change-code/", pusat_change_code, name="pusat-change-code"),
|
||||
path("pusat/registration/", pusat_registration_status, name="pusat-registration-status"),
|
||||
*router.urls,
|
||||
]
|
||||
Reference in new issue
Block a user