2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

Load default settings on InvenTree launch

This commit is contained in:
Oliver Walters
2020-02-03 20:51:53 +11:00
parent 4b8e44bc4a
commit 356b6cf15b
5 changed files with 79 additions and 0 deletions

View File

@ -21,6 +21,10 @@ class InvenTreeSetting(models.Model):
even if that key does not exist.
"""
class Meta:
verbose_name = "InvenTree Setting"
verbose_name_plural = "InvenTree Settings"
@classmethod
def get_setting(cls, key, backup_value=None):
"""