阅读背景:

我想迭代项并基于外键关系返回它,但是只有一个项返回

来源:互联网 

I have a StudentAttendance model that is a foreign key to Student. I have defined a template to return the days for a particular student and the status. And like wise for Grade, showing all the subject for that student and displaying the grade scored. The code below is only returning one item. For instance, a student attendance was recorded for Monday, Tuesday and Wednesday and only Monday is being returned but I want all to be displayed.I have a StudentAttendance model that is a fore




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: