2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

replace depreceated values everywhere

This commit is contained in:
Matthias
2022-05-11 16:46:03 +02:00
parent 81deb8201e
commit 1782974df8
19 changed files with 42 additions and 42 deletions

View File

@ -24,7 +24,7 @@ class ActionMixin:
Action name for this plugin.
If the ACTION_NAME parameter is empty,
uses the PLUGIN_NAME instead.
uses the NAME instead.
"""
if self.ACTION_NAME:
return self.ACTION_NAME

View File

@ -31,7 +31,7 @@ class ActionMixinTests(TestCase):
self.action_plugin = TestActionPlugin('user')
class NameActionPlugin(ActionMixin, InvenTreePlugin):
PLUGIN_NAME = 'Aplugin'
NAME = 'Aplugin'
self.action_name = NameActionPlugin('user')

View File

@ -373,7 +373,7 @@ class LabelPrintingMixin:
"""
Mixin which enables direct printing of stock labels.
Each plugin must provide a PLUGIN_NAME attribute, which is used to uniquely identify the printer.
Each plugin must provide a NAME attribute, which is used to uniquely identify the printer.
The plugin must also implement the print_label() function
"""
@ -428,7 +428,7 @@ class APICallMixin:
'''
A small api call sample
'''
PLUGIN_NAME = "Sample API Caller"
NAME = "Sample API Caller"
SETTINGS = {
'API_TOKEN': {

View File

@ -147,7 +147,7 @@ class APICallMixinTest(BaseMixinDefinition, TestCase):
def setUp(self):
class MixinCls(APICallMixin, SettingsMixin, InvenTreePlugin):
PLUGIN_NAME = "Sample API Caller"
NAME = "Sample API Caller"
SETTINGS = {
'API_TOKEN': {