careful modification for lesson result. a lesson result has 2 foreign key which could be filtered in the template, so do the trick ifilter n the view.