diff --git a/orm/models_utils.go b/orm/models_utils.go index e7e94a42..b682040b 100644 --- a/orm/models_utils.go +++ b/orm/models_utils.go @@ -131,7 +131,7 @@ func getFieldType(val reflect.Value) (ft int, err error) { case reflect.String: ft = TypeCharField default: - if elm.IsNil() { + if elm.Interface() == nil { panic(fmt.Errorf("%s is nil pointer, may be miss setting tag", val)) } switch elm.Interface().(type) {