2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

Partial reversion of some stuff

This commit is contained in:
Oliver
2021-08-15 12:05:53 +10:00
parent faab1f2464
commit cef09acd54
4 changed files with 24 additions and 23 deletions

View File

@ -1,14 +1,18 @@
{% load inventree_extras %}
// InvenTree settings
{% user_settings request.user as USER_SETTINGS %}
var user_settings = {
{% for key, value in user_settings.items %}
{% for key, value in USER_SETTINGS.items %}
{{ key }}: {% primitive_to_javascript value %},
{% endfor %}
};
{% global_settings as GLOBAL_SETTINGS %}
var global_settings = {
{% for key, value in global_settings.items %}
{% for key, value in GLOBAL_SETTINGS.items %}
{{ key }}: {% primitive_to_javascript value %},
{% endfor %}
};