Merge pull request from likestripes/is_ignored_fix

check isIgnored when compiling attrs to update
This commit is contained in:
Jinzhu 2015-01-14 07:58:02 +08:00
commit e3327d0800
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func convertInterfaceToMap(values interface{}) map[string]interface{} {
default: default:
scope := Scope{Value: values} scope := Scope{Value: values}
for _, field := range scope.Fields() { for _, field := range scope.Fields() {
if !field.IsBlank { if !field.IsBlank && !field.IsIgnored {
attrs[field.DBName] = field.Field.Interface() attrs[field.DBName] = field.Field.Interface()
} }
} }