1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 08:20:54 +00:00

Merge pull request #538 from admpub/patch-2

validators bug fixed
This commit is contained in:
slene 2014-03-14 15:44:05 +08:00
commit 7bacb25725

View File

@ -67,7 +67,7 @@ func (r Required) IsSatisfied(obj interface{}) bool {
} }
func (r Required) DefaultMessage() string { func (r Required) DefaultMessage() string {
return "Required" return fmt.Sprint(MessageTmpls["Required"])
} }
func (r Required) GetKey() string { func (r Required) GetKey() string {