From 3aac11abc84883ef384da4fa5e576f10991ad1e9 Mon Sep 17 00:00:00 2001 From: Travis Donia Date: Tue, 13 Jan 2015 17:57:47 -0500 Subject: [PATCH] check isIgnored when compiling attrs to update --- utils_private.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils_private.go b/utils_private.go index cf941f61..0b46cfdb 100644 --- a/utils_private.go +++ b/utils_private.go @@ -65,7 +65,7 @@ func convertInterfaceToMap(values interface{}) map[string]interface{} { default: scope := Scope{Value: values} for _, field := range scope.Fields() { - if !field.IsBlank { + if !field.IsBlank && !field.IsIgnored { attrs[field.DBName] = field.Field.Interface() } }