docstrings

This commit is contained in:
Matthias 2022-01-11 01:19:03 +01:00
parent d215af45f1
commit 0f7c277e69
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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