Merge 56356759aa269e960f908e4659ad816e855f586e into aa45da15421ddb1549a7060e5c189f8350a29166

This commit is contained in:
Kun 2016-02-15 16:24:57 +00:00
commit ab917db1bf

View File

@ -64,7 +64,7 @@ func (scope *Scope) Fields() map[string]*Field {
indirectValue := scope.IndirectValue()
isStruct := indirectValue.Kind() == reflect.Struct
for _, structField := range modelStruct.StructFields {
if field, ok := fields[structField.DBName]; !ok || field.IsIgnored {
if field, ok := fields[structField.DBName]; !ok || !field.IsIgnored {
if isStruct {
fields[structField.DBName] = getField(indirectValue, structField)
} else {