2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-17 18:26:32 +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

@@ -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': {