mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
refactor(backend): remove contrib.messages (#8959)
* remove django.contrib.messages * re-add messages as admin needs it
This commit is contained in:
parent
77cb8c1f47
commit
5968f5670f
@ -92,37 +92,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user