Added dependency django-polymorphic

Model change to take advantage of said polymorphism
Implemented asset search
This commit is contained in:
Matthew Smith
2019-10-02 21:12:24 +01:00
parent 7aba164a46
commit 207bf7bd7a
7 changed files with 118 additions and 75 deletions

View File

@@ -1,20 +1,4 @@
function filterAssetTable() {
$.ajax({
url : "/asset/filter/", // the endpoint
type : "POST", // http method
data : {
form: $('#asset-filter-form').serialize()
},
traditional: true,
success : function(data) {
// console.log(data);
$('#asset_table_body').html(data)
},
error : function(xhr) {console.log(xhr.status + ": " + xhr.responseText)}
});
}