21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
22 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
22 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
23 ] |
23 ] |
24 |
24 |
25 |
25 |
26 import polymodel |
|
27 |
|
28 from google.appengine.ext import db |
26 from google.appengine.ext import db |
29 |
27 |
30 from django.utils.translation import ugettext_lazy |
28 from django.utils.translation import ugettext_lazy |
31 |
29 |
32 from soc.models import countries |
30 from soc.models import countries |
33 |
31 |
|
32 import soc.models.linkable |
34 import soc.models.user |
33 import soc.models.user |
35 |
34 |
36 |
35 |
37 class Role(polymodel.PolyModel): |
36 class Role(soc.models.linkable.Linkable): |
38 """Information common to Program participation for all Roles. |
37 """Information common to Program participation for all Roles. |
39 |
38 |
40 Some details of a Role are considered "public" information, and nearly |
39 Some details of a Role are considered "public" information, and nearly |
41 all of these are optional (except for given_name, surname, and email). |
40 all of these are optional (except for given_name, surname, and email). |
42 Other details of a Role are kept "private" and are only provided to |
41 Other details of a Role are kept "private" and are only provided to |