예제 #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)
	}
}
예제 #2
0
func (this *CommentAdminRouter) ObjectQs() orm.QuerySeter {
	return models.Comments().RelatedSel()
}