From 0f7c277e69cc195bfa8fece39445c5c7d2828860 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 11 Jan 2022 01:19:03 +0100 Subject: [PATCH] docstrings --- InvenTree/plugin/plugin.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/InvenTree/plugin/plugin.py b/InvenTree/plugin/plugin.py index 8842553ba7..9ec01d42ca 100644 --- a/InvenTree/plugin/plugin.py +++ b/InvenTree/plugin/plugin.py @@ -24,11 +24,16 @@ class InvenTreePlugin(): def plugin_name(self): """ - Return the name of this plugin plugin + Name of plugin """ return self.PLUGIN_NAME def plugin_slug(self): + """ + Slug of plugin + If not set plugin name slugified + """ + slug = getattr(self, 'PLUGIN_SLUG', None) @@ -38,6 +43,9 @@ class InvenTreePlugin(): return slugify(slug.lower()) def plugin_title(self): + """ + Title of plugin + """ if self.PLUGIN_TITLE: return self.PLUGIN_TITLE