2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Fix/settings bugs and added model SettingKeyType typing (#4944)

* fix .gitignore and spelling issues

* Fix setting get not cached correctly

* Add model to settings key type

* Fix plugin setting slug url

* Fix typo

* Fix resetting of related setting field

* Improved model comment
This commit is contained in:
Lukas
2023-06-01 15:53:06 +02:00
committed by GitHub
parent 037654610e
commit 4d9e92011e
5 changed files with 23 additions and 12 deletions

View File

@ -315,7 +315,7 @@ def default_currency(*args, **kwargs):
@register.simple_tag()
def setting_object(key, *args, **kwargs):
"""Return a setting object speciifed by the given key.
"""Return a setting object specified by the given key.
(Or return None if the setting does not exist)
if a user-setting was requested return that