playing with validation

This commit is contained in:
wh1te909
2020-05-29 10:43:56 +00:00
parent 2187d3b968
commit ab546fabdb

View File

@@ -95,7 +95,7 @@ export default {
this.reloadChecks();
this.notifySuccess(r.data);
})
.catch(e => this.notifyError(e.response.data));
.catch(e => this.notifyError(e.response.data.non_field_errors));
},
editCheck() {
axios
@@ -105,7 +105,7 @@ export default {
this.reloadChecks();
this.notifySuccess(r.data);
})
.catch(e => this.notifyError(e.response.data));
.catch(e => this.notifyError(e.response.data.non_field_errors));
},
reloadChecks() {
if (this.policypk) {