Skip to content
Snippets Groups Projects
Commit be1fe080 authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] ta controller parameter

parent a416ca66
No related branches found
No related tags found
No related merge requests found
# HG changeset patch
# Parent e00d1176e7ba0a515a45874d9f9e8703722810d1
# Parent 8129831c739fb22d1f6fbccdc6f453f6a0a9e24f
diff --git a/controllers/my_controller.py b/controllers/my_controller.py
--- a/controllers/my_controller.py
+++ b/controllers/my_controller.py
@@ -13,7 +13,7 @@ class my_controller(main.Home):
})
@http.route('/tas/<model("academy.tas"):ta>/', auth='public', website=True)
- def ta(self, id):
+ def ta(self, ta):
return http.request.website.render('academy.ta', {
'ta': ta,
})
diff --git a/views/templates.xml b/views/templates.xml
--- a/views/templates.xml
+++ b/views/templates.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment