You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by tu...@apache.org on 2021/01/08 12:26:25 UTC

[airflow] branch master updated: Change render to render_template in plugins.rst (#13560)

This is an automated email from the ASF dual-hosted git repository.

turbaszek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 71bb9f2  Change render to render_template in plugins.rst (#13560)
71bb9f2 is described below

commit 71bb9f298b62b84158ddce62bc06ca9c5311c1da
Author: Muhammad Aqeel <aq...@gmail.com>
AuthorDate: Fri Jan 8 17:26:05 2021 +0500

    Change render to render_template in plugins.rst (#13560)
    
    Changing render to render_template as BaseView object has no attribute 'render'.
---
 docs/apache-airflow/plugins.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/apache-airflow/plugins.rst b/docs/apache-airflow/plugins.rst
index 96c4719..80708b9 100644
--- a/docs/apache-airflow/plugins.rst
+++ b/docs/apache-airflow/plugins.rst
@@ -198,7 +198,7 @@ definitions in Airflow.
 
         @expose("/")
         def test(self):
-            return self.render("test_plugin/test.html", content="Hello galaxy!")
+            return self.render_template("test_plugin/test.html", content="Hello galaxy!")
 
     v_appbuilder_view = TestAppBuilderBaseView()
     v_appbuilder_package = {"name": "Test View",