diff -r 832335761384 -r 8ecc2e4198cd app/soc/models/host.py --- a/app/soc/models/host.py Mon Sep 29 15:31:50 2008 +0000 +++ b/app/soc/models/host.py Mon Sep 29 15:34:40 2008 +0000 @@ -21,26 +21,20 @@ '"Sverre Rabbelier" ', ] + from google.appengine.ext import db -from soc.models import base -from soc import models -import soc.models.person +import soc.models.role import soc.models.sponsor -class Host(base.ModelWithFieldAttributes): - """Host details for a specific Program.""" - - #: A 1:1 relationship associating a Host with specific - #: Person details and capabilities. The back-reference in - #: the Person model is a Query named 'host'. - person = db.ReferenceProperty(reference_class=models.person.Person, - required=True, collection_name="host") +class Host(soc.models.role.Role): + """Host details for a specific Program. + """ #: A 1:1 relationship associating a Host with specific #: Sponsor details and capabilities. The back-reference in #: the Sponsor model is a Query named 'host'. sponsor = db.ReferenceProperty(reference_class=models.sponsor.Sponsor, - required=True, collection_name="host") + required=True, collection_name='hosts')