Fixed display_name of widgets.

This commit is contained in:
Emanuel Schuetze 2012-11-08 09:43:04 +01:00
parent 7c75f42d85
commit e601d8a5a3
4 changed files with 5 additions and 2 deletions

View File

@ -226,6 +226,7 @@ def get_widgets(request):
return [
Widget(
name='agenda',
display_name=_('Agenda'),
template='agenda/widget.html',
context={
'agenda': SLIDE['agenda'],

View File

@ -674,7 +674,8 @@ def register_tab(request):
def get_widgets(request):
return [
Widget(
name=_('Assignments'),
name='assignments',
display_name=_('Elections'),
template='assignment/widget.html',
context={'assignments': Assignment.objects.all()},
permission_required='assignment.can_manage_assignment')]

View File

@ -925,6 +925,7 @@ def get_widgets(request):
return [
Widget(
name='motions',
display_name=_('Motions'),
template='motion/widget.html',
context={'motions': Motion.objects.all()},
permission_required='motion.can_manage_motion')]

View File

@ -573,7 +573,7 @@ def get_user_widget(request):
"""
return Widget(
name='user',
display_name=_('Users'),
display_name=_('Participants'),
template='participant/user_widget.html',
context={'users': User.objects.all(),},
permission_required='projector.can_manage_projector',