2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

refactor(backend): remove contrib.messages (#8959)

* remove django.contrib.messages

* re-add messages as admin needs it
This commit is contained in:
Matthias Mair 2025-01-27 03:03:15 +01:00 committed by GitHub
parent 77cb8c1f47
commit 5968f5670f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,37 +92,5 @@
</div>
</div>
<script defer type='text/javascript'>
$(document).ready(function () {
{% block js_ready %}
{% endblock js_ready %}
inventreeDocReady();
{% if barcodes %}
$('#barcode-scan').click(function() {
barcodeScanDialog();
});
{% endif %}
moment.locale('{{ request.LANGUAGE_CODE }}');
// Account notifications
{% if messages %}
{% for message in messages %}
showMessage(
'{{ message }}',
{
style: 'info',
}
);
{% endfor %}
{% endif %}
});
</script>
</body>
</html>