Skip to content

Commit 5a5446c

Browse files
committed
Added object IDs to /meeting/<num>/agenda.json.
- Legacy-Id: 11984
1 parent aecbeb6 commit 5a5446c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/meeting/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ def json_agenda(request, num=None ):
905905
for asgn in meeting.agenda.assignments.exclude(session__type__in=['lead','offagenda','break','reg']):
906906
sessdict = dict()
907907
sessdict['objtype'] = 'session'
908+
sessdict['id'] = asgn.pk
908909
if asgn.session.group.type_id in ['wg','rg']:
909910
sessdict['group'] = asgn.session.group.acronym
910911
sessdict['parent'] = asgn.session.group.parent.acronym
@@ -935,6 +936,7 @@ def json_agenda(request, num=None ):
935936
rooms = []
936937
for room in meeting.room_set.filter(name__in=room_names):
937938
roomdict = dict()
939+
roomdict['id'] = room.pk
938940
roomdict['objtype'] = 'location'
939941
roomdict['name'] = room.name
940942
if room.floorplan:
@@ -952,6 +954,7 @@ def json_agenda(request, num=None ):
952954
parents = []
953955
for parent in Group.objects.filter(acronym__in=parent_acronyms):
954956
parentdict = dict()
957+
parentdict['id'] = parent.pk
955958
parentdict['objtype'] = 'parent'
956959
parentdict['name'] = parent.acronym
957960
parentdict['description'] = parent.name

0 commit comments

Comments
 (0)