app/soc/views/models/role.py
changeset 657 c781de4f6d39
parent 656 a76f1b443ea4
child 660 5a381b290691
equal deleted inserted replaced
656:a76f1b443ea4 657:c781de4f6d39
    62   role = forms.CharField(widget=helper.widgets.ReadOnlyInput())
    62   role = forms.CharField(widget=helper.widgets.ReadOnlyInput())
    63 
    63 
    64   to = forms.CharField(widget=helper.widgets.ReadOnlyInput())
    64   to = forms.CharField(widget=helper.widgets.ReadOnlyInput())
    65 
    65 
    66 
    66 
    67 class RoleView(base.View):
    67 class View(base.View):
    68   """Views for all entities that inherit from Role.
    68   """Views for all entities that inherit from Role.
    69 
    69 
    70   All views that only Role entities have are defined in this subclass.
    70   All views that only Role entities have are defined in this subclass.
    71   """
    71   """
    72   
    72   
   141 
   141 
   142     params = {}
   142     params = {}
   143     params['django_patterns_defaults'] = default_patterns
   143     params['django_patterns_defaults'] = default_patterns
   144 
   144 
   145     params = dicts.merge(params, self._params)
   145     params = dicts.merge(params, self._params)
   146     patterns = super(RoleView, self).getDjangoURLPatterns(params)
   146     patterns = super(View, self).getDjangoURLPatterns(params)
   147 
   147 
   148     return patterns
   148     return patterns
   149 
   149