generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
28 lines (21 loc) · 772 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from app.categories.send import bp
from app.categories.views import CategoryLandingPage
class SendLandingPage(CategoryLandingPage):
question_title = "Special educational needs and disability (SEND)"
category = "send"
routing_map = {
"child_young_person": "categories.index",
"tribunals": "categories.index",
"child_in_care": "categories.index",
"discrimination": "categories.results.in_scope",
"schools": "categories.results.in_scope",
"disability": "categories.index",
"other": "categories.results.refer",
}
bp.add_url_rule(
"/send/",
view_func=SendLandingPage.as_view(
"landing", template="categories/send/landing.html"
),
)
SendLandingPage.register_routes(blueprint=bp)