diff --git a/doc/howto/howto_website/ta-t-field b/doc/howto/howto_website/ta-t-field index 9bc52d052dd..7f6f9e296ab 100644 --- a/doc/howto/howto_website/ta-t-field +++ b/doc/howto/howto_website/ta-t-field @@ -1,18 +1,6 @@ # HG changeset patch -# Parent 8129831c739fb22d1f6fbccdc6f453f6a0a9e24f +# Parent 48c349d1df4e975b47b34afbbb527f023f4f7ca0 -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//', 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 diff --git a/doc/howto/howto_website/ta-view-fix b/doc/howto/howto_website/ta-view-fix index dac105dba9e..c1ad0adc139 100644 --- a/doc/howto/howto_website/ta-view-fix +++ b/doc/howto/howto_website/ta-view-fix @@ -1,5 +1,5 @@ # HG changeset patch -# Parent fa3e25d0315e54de4bd983ad8532044b5e2df233 +# Parent 548ab57454752e9575323e26d0471669c78172f6 diff --git a/controllers/my_controller.py b/controllers/my_controller.py --- a/controllers/my_controller.py @@ -9,9 +9,10 @@ diff --git a/controllers/my_controller.py b/controllers/my_controller.py }) - @http.route('/tas//', auth='public', website=True) -+ @http.route('/tas//', auth='public', website=True) - def ta(self, id): +- def ta(self, id): - return http.request.website.render('academy.ta', teaching_assistants[id]) ++ @http.route('/tas//', auth='public', website=True) ++ def ta(self, ta): + return http.request.website.render('academy.ta', { + 'ta': ta, + })