diff --git a/InvenTree/plugin/plugin.py b/InvenTree/plugin/plugin.py index 0eefe42080..6cb079c05f 100644 --- a/InvenTree/plugin/plugin.py +++ b/InvenTree/plugin/plugin.py @@ -201,21 +201,6 @@ class InvenTreePlugin(MixinBase, MetaBase): self.define_package() - @property - def _is_package(self): - """ - Is the plugin delivered as a package - """ - return getattr(self, 'is_package', False) - - @property - def is_sample(self): - """ - Is this plugin part of the samples? - """ - path = str(self.package_path) - return path.startswith('plugin/samples/') - # region properties @property def description(self): @@ -278,6 +263,21 @@ class InvenTreePlugin(MixinBase, MetaBase): return lic # endregion + @property + def _is_package(self): + """ + Is the plugin delivered as a package + """ + return getattr(self, 'is_package', False) + + @property + def is_sample(self): + """ + Is this plugin part of the samples? + """ + path = str(self.package_path) + return path.startswith('plugin/samples/') + @property def package_path(self): """