Skip to content

Commit 47fa8d7

Browse files
committed
Define workflow requests urls
1 parent ede2ef4 commit 47fa8d7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tally_ho/urls.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
TurnoutReportByAdminAreasDataView,
4646
TurnoutReportByAdminAreasView
4747
)
48+
from tally_ho.apps.tally.views.workflow import (
49+
InitiateRecallView,
50+
CreateRecallRequestView,
51+
RecallRequestDetailView
52+
)
4853

4954
admin.autodiscover()
5055

@@ -1013,7 +1018,15 @@
10131018
re_path(r'^data/sub-constituencies-progress-report/(?P<tally_id>(\d+))/$',
10141019
progress_by_sub_races_reports.SubConstituenciesReportView.as_view(),
10151020
name='sub-constituencies-progress-report'),
1016-
1021+
re_path(r'^tally/(?P<tally_id>\d+)/workflow/initiate-recall/$',
1022+
InitiateRecallView.as_view(),
1023+
name='initiate_recall_request'),
1024+
re_path(r'^tally/(?P<tally_id>\d+)/workflow/create-recall/$',
1025+
CreateRecallRequestView.as_view(),
1026+
name='create_recall_request'),
1027+
re_path(r'^tally/(?P<tally_id>\d+)/workflow/recall/(?P<request_pk>\d+)/$',
1028+
RecallRequestDetailView.as_view(),
1029+
name='recall_request_detail'),
10171030
path('operation-not-allowed',
10181031
home.suspicious_error,
10191032
name='suspicious-error'),

0 commit comments

Comments
 (0)