app/soc/views/models/base.py
changeset 970 8b5611d5b053
parent 957 5b657063b23b
child 973 f9c2b32b9e2b
equal deleted inserted replaced
969:b12de918d660 970:8b5611d5b053
    23   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    23   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    24   ]
    24   ]
    25 
    25 
    26 
    26 
    27 from django import http
    27 from django import http
    28 from django.utils.translation import ugettext_lazy
    28 from django.utils.translation import ugettext
    29 
    29 
    30 from soc.logic import dicts
    30 from soc.logic import dicts
    31 from soc.views import helper
    31 from soc.views import helper
    32 from soc.views import out_of_band
    32 from soc.views import out_of_band
    33 from soc.views.helper import decorators
    33 from soc.views.helper import decorators
    49   on the the child-classes to define the following fields:
    49   on the the child-classes to define the following fields:
    50 
    50 
    51   self._logic: the logic singleton for this entity
    51   self._logic: the logic singleton for this entity
    52   """
    52   """
    53 
    53 
    54   DEF_CREATE_NEW_ENTITY_MSG_FMT = ugettext_lazy(
    54   DEF_CREATE_NEW_ENTITY_MSG_FMT = ugettext(
    55       ' You can create a new %(entity_type)s by visiting'
    55       ' You can create a new %(entity_type)s by visiting'
    56       ' <a href="%(create)s">Create '
    56       ' <a href="%(create)s">Create '
    57       'a New %(entity_type)s</a> page.')
    57       'a New %(entity_type)s</a> page.')
    58 
    58 
    59   DEF_CREATE_INSTRUCTION_MSG_FMT = ugettext_lazy(
    59   DEF_CREATE_INSTRUCTION_MSG_FMT = ugettext(
    60       'Please select a %s for the new %s.')
    60       'Please select a %s for the new %s.')
    61 
    61 
    62   def __init__(self, params=None):
    62   def __init__(self, params=None):
    63     """
    63     """
    64 
    64