mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 11:04:35 +00:00
Add "hidden" property to global settings
- Allows certain settings to be hidden from the javascript files
This commit is contained in:
1 parent
2f3772f3bf
commit
626637a06a
3 files changed
+18
-3
No files matched your search
@@ -251,6 +251,15 @@ def global_settings(*args, **kwargs):
|
||||
return InvenTreeSetting.allValues()
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def visible_global_settings(*args, **kwargs):
|
||||
"""
|
||||
Return any global settings which are not marked as 'hidden'
|
||||
"""
|
||||
|
||||
return InvenTreeSetting.allValues(exclude_hidden=True)
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def progress_bar(val, max, *args, **kwargs):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user