equal
deleted
inserted
replaced
19 __authors__ = [ |
19 __authors__ = [ |
20 '"Todd Larsen" <tlarsen@google.com>', |
20 '"Todd Larsen" <tlarsen@google.com>', |
21 ] |
21 ] |
22 |
22 |
23 |
23 |
|
24 from django.utils.translation import ugettext_lazy |
|
25 |
24 from google.appengine.ext import db |
26 from google.appengine.ext import db |
25 |
27 |
26 from soc.models import base |
28 from soc.models import base |
27 |
29 |
28 import soc.models.group |
30 import soc.models.group |
38 |
40 |
39 students) a 1:many relationship of Students attending (or otherwise |
41 students) a 1:many relationship of Students attending (or otherwise |
40 belonging to) a School. This relation is implemented as the 'students' |
42 belonging to) a School. This relation is implemented as the 'students' |
41 back-reference Query of the Student model 'school' reference. |
43 back-reference Query of the Student model 'school' reference. |
42 """ |
44 """ |
43 |
45 |
44 #: Group type short name used for example in urls |
46 #: Type name used in templates |
45 GROUP_TYPE_SHORT = 'school' |
47 TYPE_NAME = ugettext_lazy('School') |
46 #: Group type plural name used in Group templates |
48 #: Type short name used for example in urls |
47 GROUP_TYPE_PLURAL = 'Schools' |
49 TYPE_NAME_SHORT = 'school' |
48 |
50 #: Type plural name used in templates |
|
51 TYPE_NAME_PLURAL = ugettext_lazy('Schools') |