Fixed display_name of widgets.
This commit is contained in:
parent
7c75f42d85
commit
e601d8a5a3
@ -226,6 +226,7 @@ def get_widgets(request):
|
|||||||
return [
|
return [
|
||||||
Widget(
|
Widget(
|
||||||
name='agenda',
|
name='agenda',
|
||||||
|
display_name=_('Agenda'),
|
||||||
template='agenda/widget.html',
|
template='agenda/widget.html',
|
||||||
context={
|
context={
|
||||||
'agenda': SLIDE['agenda'],
|
'agenda': SLIDE['agenda'],
|
||||||
|
@ -674,7 +674,8 @@ def register_tab(request):
|
|||||||
def get_widgets(request):
|
def get_widgets(request):
|
||||||
return [
|
return [
|
||||||
Widget(
|
Widget(
|
||||||
name=_('Assignments'),
|
name='assignments',
|
||||||
|
display_name=_('Elections'),
|
||||||
template='assignment/widget.html',
|
template='assignment/widget.html',
|
||||||
context={'assignments': Assignment.objects.all()},
|
context={'assignments': Assignment.objects.all()},
|
||||||
permission_required='assignment.can_manage_assignment')]
|
permission_required='assignment.can_manage_assignment')]
|
||||||
|
@ -925,6 +925,7 @@ def get_widgets(request):
|
|||||||
return [
|
return [
|
||||||
Widget(
|
Widget(
|
||||||
name='motions',
|
name='motions',
|
||||||
|
display_name=_('Motions'),
|
||||||
template='motion/widget.html',
|
template='motion/widget.html',
|
||||||
context={'motions': Motion.objects.all()},
|
context={'motions': Motion.objects.all()},
|
||||||
permission_required='motion.can_manage_motion')]
|
permission_required='motion.can_manage_motion')]
|
||||||
|
@ -573,7 +573,7 @@ def get_user_widget(request):
|
|||||||
"""
|
"""
|
||||||
return Widget(
|
return Widget(
|
||||||
name='user',
|
name='user',
|
||||||
display_name=_('Users'),
|
display_name=_('Participants'),
|
||||||
template='participant/user_widget.html',
|
template='participant/user_widget.html',
|
||||||
context={'users': User.objects.all(),},
|
context={'users': User.objects.all(),},
|
||||||
permission_required='projector.can_manage_projector',
|
permission_required='projector.can_manage_projector',
|
||||||
|
Loading…
Reference in New Issue
Block a user