Esempio n. 1
0
// view for list model data
func (this *CommentAdminRouter) List() {
	var comments []models.Comment
	qs := models.Comments().RelatedSel()
	if err := this.SetObjects(qs, &comments); err != nil {
		this.Data["Error"] = err
		beego.Error(err)
	}
}
Esempio n. 2
0
func (this *CommentAdminRouter) ObjectQs() orm.QuerySeter {
	return models.Comments().RelatedSel()
}