Sorting assignments by name in the widget

This commit is contained in:
Norman Jäckel 2012-09-05 22:19:53 +02:00
parent 34a690c713
commit d84a8d2bdd

View File

@ -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')]