From 1063e7011a4c4a261e0c1f76733447f8bc7ec3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Fri, 26 Oct 2012 17:14:46 +0200 Subject: [PATCH] Change query for assignments in personal_info_widget --- openslides/participant/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openslides/participant/views.py b/openslides/participant/views.py index 01d97cfa1..1dd58185e 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -531,7 +531,9 @@ def get_personal_info_widget(request): 'submitted_motions': Motion.objects.filter(submitter=request.user), 'config_motion_min_supporters': config['motion_min_supporters'], 'supported_motions': Motion.objects.filter(motionsupporter=request.user), - 'assignments': [ assignment for assignment in Assignment.objects.all() if assignment.is_candidate(request.user) ],} + 'assignments': Assignment.objects.filter( + assignmentcandidate__person=request.user, + assignmentcandidate__blocked=False),} return Widget( name='personal_info', display_name=_('On You'),