Commit f45d9e43 by Oláh István Gergely

dashboard: add url to GroupList item

parent 81094f0d
...@@ -994,7 +994,8 @@ class GroupList(LoginRequiredMixin, SuperuserRequiredMixin, SingleTableView): ...@@ -994,7 +994,8 @@ class GroupList(LoginRequiredMixin, SuperuserRequiredMixin, SingleTableView):
'operator', user).values_list('pk')] 'operator', user).values_list('pk')]
groups = Group.objects.filter(groupprofile__in=pks) groups = Group.objects.filter(groupprofile__in=pks)
groups = [{ groups = [{
'url': '', 'url': reverse("dashboard.views.group-detail",
kwargs={'pk': i.pk}),
'name': i.name} for i in groups] 'name': i.name} for i in groups]
return HttpResponse( return HttpResponse(
json.dumps(list(groups)), json.dumps(list(groups)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment