Fixed admin lang change

This commit is contained in:
Adolfo Gómez García 2022-06-06 19:06:11 +02:00
commit 6cf8eb3e77
4 changed files with 8 additions and 2 deletions

View File

@ -108,3 +108,5 @@ def extend_sqlite(connection, **kwargs):
connection.connection.create_function("MIN", 2, min)
connection.connection.create_function("MAX", 2, max)
connection.connection.create_function("CEIL", 1, math.ceil)
connection.connection.create_function("FLOOR", 1, math.floor)

View File

@ -44,6 +44,9 @@ logger = logging.getLogger(__name__)
CSRF_FIELD = 'csrfmiddlewaretoken'
CSRF_FIELD = 'csrfmiddlewaretoken'
@denyBrowsers(browsers=['ie<10'])
@webLoginRequired(admin=True)
def index(request):

File diff suppressed because one or more lines are too long

View File

@ -78,6 +78,7 @@
return s;
}
}
var csrf = { csrfToken: '{{ csrf_token }}', csrfField: '{{ csrf_field }}' };
if (window.top !== window.self) {
window.location.href = 'https://www.udsenterprise.com';
@ -98,7 +99,7 @@
</svg>
</div>
</uds-root>
<script src="/uds/res/admin/runtime.js?stamp=1652985115" type="module"></script><script src="/uds/res/admin/polyfills.js?stamp=1652985115" type="module"></script><script src="/uds/res/admin/main.js?stamp=1652985115" type="module"></script>
<script src="/uds/res/admin/runtime.js?stamp=1654535153" type="module"></script><script src="/uds/res/admin/polyfills.js?stamp=1654535153" type="module"></script><script src="/uds/res/admin/main.js?stamp=1654535153" type="module"></script>
</body></html>