Skip to content

Commit be1fe08

Browse files
committed
[FIX] ta controller parameter
1 parent a416ca6 commit be1fe08

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

doc/howto/howto_website/ta-t-field

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# HG changeset patch
2-
# Parent e00d1176e7ba0a515a45874d9f9e8703722810d1
2+
# Parent 8129831c739fb22d1f6fbccdc6f453f6a0a9e24f
3+
4+
diff --git a/controllers/my_controller.py b/controllers/my_controller.py
5+
--- a/controllers/my_controller.py
6+
+++ b/controllers/my_controller.py
7+
@@ -13,7 +13,7 @@ class my_controller(main.Home):
8+
})
9+
10+
@http.route('/tas/<model("academy.tas"):ta>/', auth='public', website=True)
11+
- def ta(self, id):
12+
+ def ta(self, ta):
13+
return http.request.website.render('academy.ta', {
14+
'ta': ta,
15+
})
316
diff --git a/views/templates.xml b/views/templates.xml
417
--- a/views/templates.xml
518
+++ b/views/templates.xml

0 commit comments

Comments
 (0)