Comparing version 0.1.13-alpha.6 to 0.1.13-alpha.7
@@ -1,2 +0,2 @@ | ||
const { ValueError } = require('../errors') | ||
const { FieldValidationError } = require('../errors') | ||
const { Field } = require('../models/AttrModel') | ||
@@ -16,3 +16,7 @@ | ||
) { | ||
throw new ValueError(`Invalid choice "${value}"`) | ||
throw new FieldValidationError( | ||
inst, | ||
fieldName, | ||
`Invalid choice "${value}"` | ||
) | ||
} | ||
@@ -19,0 +23,0 @@ return super.validateValue(inst, fieldName) |
@@ -163,2 +163,3 @@ const { DatabaseModelBase } = require('./DatabaseModelBase') | ||
async save () { | ||
await this.validate() | ||
if (this.pk) { | ||
@@ -165,0 +166,0 @@ return await this.update() |
{ | ||
"name": "djorm", | ||
"version": "0.1.13-alpha.6", | ||
"version": "0.1.13-alpha.7", | ||
"description": "Django like ORM framework", | ||
@@ -39,3 +39,3 @@ "author": "Pavel Žák <pavel@zak.global>", | ||
}, | ||
"gitHead": "992a55f4dc63d26a0b418feaf06c5aa344a689e5" | ||
"gitHead": "9f4ef18813a98429678fa22e14a244e86d664b89" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76625
2694