--- a/app/soc/views/models/host.py Wed Dec 03 21:27:01 2008 +0000
+++ b/app/soc/views/models/host.py Wed Dec 03 21:27:27 2008 +0000
@@ -72,7 +72,7 @@
pass
-class View(role.RoleView):
+class View(role.View):
"""View methods for the Host model.
"""
@@ -106,7 +106,7 @@
params = dicts.merge(params, new_params)
- role.RoleView.__init__(self, params=params)
+ super(View, self).__init__(params=params)
def _editPost(self, request, entity, fields):
"""See base.View._editPost().
--- a/app/soc/views/models/role.py Wed Dec 03 21:27:01 2008 +0000
+++ b/app/soc/views/models/role.py Wed Dec 03 21:27:27 2008 +0000
@@ -64,7 +64,7 @@
to = forms.CharField(widget=helper.widgets.ReadOnlyInput())
-class RoleView(base.View):
+class View(base.View):
"""Views for all entities that inherit from Role.
All views that only Role entities have are defined in this subclass.
@@ -143,7 +143,7 @@
params['django_patterns_defaults'] = default_patterns
params = dicts.merge(params, self._params)
- patterns = super(RoleView, self).getDjangoURLPatterns(params)
+ patterns = super(View, self).getDjangoURLPatterns(params)
return patterns