2013-12-03 01:50:10 +01:00
|
|
|
from django.utils.translation import ugettext_lazy
|
|
|
|
|
|
|
|
from openslides.utils.personal_info import PersonalInfo
|
|
|
|
|
|
|
|
from .models import Item
|
|
|
|
|
|
|
|
|
|
|
|
class AgendaPersonalInfo(PersonalInfo):
|
|
|
|
"""
|
2014-10-11 14:34:49 +02:00
|
|
|
Class for user info block for the agenda app.
|
2013-12-03 01:50:10 +01:00
|
|
|
"""
|
|
|
|
headline = ugettext_lazy('I am on the list of speakers of the following items')
|
|
|
|
default_weight = 10
|
|
|
|
|
|
|
|
def get_queryset(self):
|
|
|
|
return Item.objects.filter(
|
2014-10-11 14:34:49 +02:00
|
|
|
speaker__user=self.request.user,
|
2013-12-03 01:50:10 +01:00
|
|
|
speaker__begin_time=None)
|