Skip to content

Commit

Permalink
feat: add the IAB to the group menu (#6130)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Aug 11, 2023
1 parent 7313736 commit bb6360f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ietf/group/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,16 @@ def group_menu_data(request):
# groups_by_parent[g.parent_id].append({ 'acronym': g.acronym, 'name': escape(g.name), 'url': url })
groups_by_parent[g.parent_id].append({ 'acronym': g.acronym, 'name': escape(g.name), 'type': escape(g.type.verbose_name or g.type.name), 'url': url })

iab = Group.objects.get(acronym="iab")
groups_by_parent[iab.pk].insert(
0,
{
"acronym": iab.acronym,
"name": iab.name,
"type": "Top Level Group",
"url": urlreverse("ietf.group.views.group_home", kwargs={"acronym": iab.acronym})
}
)
return JsonResponse(groups_by_parent)


Expand Down

0 comments on commit bb6360f

Please sign in to comment.