app/soc/models/club.py
changeset 369 2955eff2bf94
parent 344 d135c8c09967
child 385 6d410bf49a82
equal deleted inserted replaced
368:f90f9b22751a 369:2955eff2bf94
    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
    39    members)  a 1:many relationship of Members belonging to a Club.  This
    41    members)  a 1:many relationship of Members belonging to a Club.  This
    40      relation is implemented as the 'members' back-reference Query of the
    42      relation is implemented as the 'members' back-reference Query of the
    41      Member model 'club' reference.
    43      Member model 'club' 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 = 'club'
    47   TYPE_NAME = ugettext_lazy('Club')
    46   #: Group type plural name used in Group templates
    48   #: Type short name used for example in urls
    47   GROUP_TYPE_PLURAL = 'Clubs'
    49   TYPE_NAME_SHORT = 'club'
    48 
    50   #: Type plural name used in templates
       
    51   TYPE_NAME_PLURAL = ugettext_lazy('Clubs')