fixed error in projector Control

This commit is contained in:
Oskar Hahn 2012-03-18 14:35:01 +01:00
parent 282778c8a0
commit f5414b18d2
2 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ from openslides.projector.signals import projector_messages
class ControlView(TemplateView):
template_name = 'projector/control.html'
permission_required = 'projector.can_manage_projector'
def get_context_data(self, **kwargs):
context = super(ControlView, self).get_context_data(**kwargs)

View File

@ -93,7 +93,7 @@ class Config(FormView):
@receiver(template_manipulation, dispatch_uid="system_base_system")
def set_submenu(sender, request, **kwargs):
def set_submenu(sender, request, context, **kwargs):
selected = True if request.path == reverse('config_general') else False
menu_links = [
(reverse('config_general'), _('General'), selected),
@ -111,6 +111,6 @@ def set_submenu(sender, request, **kwargs):
(reverse('config_%s' % appname), _(appname.title()), selected)
)
kwargs['context'].update({
context.update({
'menu_links': menu_links,
})