From 8a40ade735b0a568faf2a439b81bc539b39634ac Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 13 Oct 2014 17:27:36 -0400 Subject: [PATCH] Fix group list view context --- mayan/apps/user_management/views.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mayan/apps/user_management/views.py b/mayan/apps/user_management/views.py index e10ce189fe..e64d2fa50f 100644 --- a/mayan/apps/user_management/views.py +++ b/mayan/apps/user_management/views.py @@ -248,17 +248,15 @@ def group_list(request): context = { 'object_list': Group.objects.all(), - 'extra_context': { - 'title': _(u'Groups'), - 'hide_link': True, - 'extra_columns': [ - { - 'name': _(u'Members'), - 'attribute': 'user_set.count' - }, - ], - 'multi_select_as_buttons': True, - } + 'title': _(u'Groups'), + 'hide_link': True, + 'extra_columns': [ + { + 'name': _(u'Members'), + 'attribute': 'user_set.count' + }, + ], + 'multi_select_as_buttons': True, } return render_to_response('main/generic_list.html', context,