// view for list model data func (this *CategoryAdminRouter) List() { var cats []models.Category qs := models.Categories().RelatedSel() if err := this.SetObjects(qs, &cats); err != nil { this.Data["Error"] = err beego.Error(err) } }
func (this *CategoryAdminRouter) ObjectQs() orm.QuerySeter { return models.Categories().RelatedSel() }