19 __authors__ = [ |
19 __authors__ = [ |
20 '"Todd Larsen" <tlarsen@google.com>', |
20 '"Todd Larsen" <tlarsen@google.com>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
22 ] |
22 ] |
23 |
23 |
|
24 |
24 from google.appengine.ext import db |
25 from google.appengine.ext import db |
25 |
26 |
26 from soc import models |
27 import soc.models.reviewer |
27 from soc.models import base |
|
28 import soc.models.org |
|
29 import soc.models.person |
|
30 |
28 |
31 |
29 |
32 class Administrator(base.ModelWithFieldAttributes): |
30 class Administrator(soc.models.reviewer.Reviewer): |
33 """Administrator details for a specific Program. |
31 """Administrator details for a specific Program. |
34 """ |
32 """ |
35 |
33 pass |
36 #: A 1:1 relationship associating an Administrator with specific |
|
37 #: Person details and capabilities. The back-reference in the |
|
38 #: Person model is a Query named 'admin'. |
|
39 person = db.ReferenceProperty(reference_class=soc.models.person.Person, |
|
40 required=True, collection_name="admin") |
|
41 |
34 |
42 #: A many:1 relationship associating Administrators with specific |
|
43 #: Organization details and capabilities. The back-reference in the |
|
44 #: Organization model is a Query named 'admins'. |
|
45 org = db.ReferenceProperty(reference_class=soc.models.org.Organization, |
|
46 required=True, collection_name="admins") |
|