From d84a8d2bddbb36b67f48a08757b9951a2db013c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Wed, 5 Sep 2012 22:19:53 +0200 Subject: [PATCH] Sorting assignments by name in the widget --- openslides/assignment/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/assignment/views.py b/openslides/assignment/views.py index 7bffaa18e..1e76e0999 100644 --- a/openslides/assignment/views.py +++ b/openslides/assignment/views.py @@ -660,5 +660,5 @@ def get_widgets(request): Widget( name=_('Assignments'), template='assignment/widget.html', - context={'assignments': Assignment.objects.all()}, + context={'assignments': Assignment.objects.all().order_by('name')}, permission_required='assignment.can_manage_assignment')]