app/soc/models/student.py
changeset 1383 18383d2e5a5b
parent 1374 ed12ed835755
child 1949 bcc52df68367
--- a/app/soc/models/student.py	Tue Feb 17 20:07:20 2009 +0000
+++ b/app/soc/models/student.py	Tue Feb 17 20:15:43 2009 +0000
@@ -24,9 +24,15 @@
 from google.appengine.ext import db
 
 import soc.models.role
+import soc.models.school
 
 
 class Student(soc.models.role.Role):
   """Student details for a specific Program.
   """
-  pass
+
+  #: A many:1 relationship that ties multiple Students to the
+  #: School that they attend.
+  school = db.ReferenceProperty(reference_class=soc.models.school.School,
+                                required=False, collection_name='students')
+