OpenSlides/openslides/motions/widgets.py
Oskar Hahn 0b5f75339e Rename apps and permissions
* Fixed agenda permissions
* Renamed assignment to assignments, fixed assignments permission names
* Renamed mediafile to mediafiles
* Renamed motion to motions. Fixed motions permission names
2015-03-29 20:35:53 +02:00

25 lines
647 B
Python

from django.utils.translation import ugettext_lazy
from openslides.utils.widgets import Widget
from .models import Motion
class MotionWidget(Widget):
"""
Motion widget.
"""
name = 'motion'
verbose_name = ugettext_lazy('Motions')
required_permission = 'core.can_manage_projector'
default_column = 1
default_weight = 40
icon_css_class = 'icon-file'
template_name = 'motions/widget_motion.html'
more_link_pattern_name = 'motion_list'
def get_context_data(self, **context):
return super(MotionWidget, self).get_context_data(
motions=Motion.objects.all(),
**context)