From 08a7c7870e176fef7ce2724f1a0db5ab75a68d00 Mon Sep 17 00:00:00 2001 From: Carlos Henrique Lima Melara Date: Thu, 15 Apr 2021 15:05:33 -0300 Subject: [PATCH] docs: Add missing imports in tutorial as pointed in #2078 Reviewed-by: Sunil Mohan Adapa --- doc/dev/tutorial/components.rst | 2 ++ doc/dev/tutorial/view.rst | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/dev/tutorial/components.rst b/doc/dev/tutorial/components.rst index a3900fb16..ff0773637 100644 --- a/doc/dev/tutorial/components.rst +++ b/doc/dev/tutorial/components.rst @@ -18,6 +18,8 @@ function normally. .. code-block:: python3 :caption: ``__init__.py`` + from django.utils.translation import ugettext_lazy as _ + from plinth import app as app_module from . import manifest diff --git a/doc/dev/tutorial/view.rst b/doc/dev/tutorial/view.rst index 4fd60e06a..29c2a79c8 100644 --- a/doc/dev/tutorial/view.rst +++ b/doc/dev/tutorial/view.rst @@ -36,7 +36,7 @@ a link in FreedomBox web interface. Let us add a link in the apps list. In .. code-block:: python3 :caption: ``__init__.py`` - from plinth.menu import main_menu + from plinth import menu class TransmissionApp(app_module.App): ...