2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Fixed bugs in Inventree/views.py

- Need to pass request.FILES to the form! (duh!) 
 - Prevent form data from being saved twice
This commit is contained in:
Oliver
2018-05-03 23:40:27 +10:00
parent 68cf6919a7
commit bc716e25f7
4 changed files with 15 additions and 6 deletions

View File

@@ -92,7 +92,7 @@
launchModalForm("#modal-form",
"{% url 'part-edit' part.id %}",
{
reload: true
reload: true,
});
});

View File

@@ -89,6 +89,9 @@
$("#part-thumb").click(function() {
launchModalForm("#modal-form",
"{% url 'part-image' part.id %}",
{
reload: true
}
);
});
{% endblock %}