Displaying 1 result from an estimated 1 matches for "course_performance".
Did you mean:
course_performances
2007 Dec 04
0
a new model object associated with two parents
...d answers too)
Here is a cooked up example of a basic idea I am trying to accomplish
Say that I have a Pupil model . Perhaps also a Teacher, Course models.
Teachers will have things called Course_Offerings. To keep track of a
pupils performance in a course there will be a separate model called
Course_performances. These course_performances will belong to both
Pupils and to Course_offerings. In addition to foreign keys, Id like
the course_performance records to have their own copy of the Pupils
"full_name" for easy access in views.
Given a list of Pupils, is the code below an efficient way of...