2013-12-03 01:50:10 +01:00
|
|
|
from django.utils.translation import ugettext_lazy
|
|
|
|
|
|
|
|
from openslides.config.api import config
|
|
|
|
from openslides.utils.personal_info import PersonalInfo
|
|
|
|
|
|
|
|
|
|
|
|
class MotionSubmitterPersonalInfo(PersonalInfo):
|
|
|
|
"""
|
|
|
|
Class for personal info block for motion submitters.
|
|
|
|
"""
|
|
|
|
headline = ugettext_lazy('I submitted the following motions')
|
|
|
|
default_weight = 20
|
|
|
|
|
|
|
|
def get_queryset(self):
|
2015-04-30 19:13:28 +02:00
|
|
|
return None # TODO: Fix this after transforming everything using AngularJS.
|
2013-12-03 01:50:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MotionSupporterPersonalInfo(PersonalInfo):
|
|
|
|
"""
|
|
|
|
Class for personal info block for motion supporters.
|
|
|
|
"""
|
|
|
|
headline = ugettext_lazy('I support the following motions')
|
|
|
|
default_weight = 30
|
|
|
|
|
|
|
|
def get_queryset(self):
|
|
|
|
if config['motion_min_supporters']:
|
2015-04-30 19:13:28 +02:00
|
|
|
return_value = None # TODO: Fix this after transforming everything using AngularJS.
|
2013-12-03 01:50:10 +01:00
|
|
|
else:
|
|
|
|
return_value = None
|
|
|
|
return return_value
|