Skip to content

Commit 54b682d

Browse files
committed
Merged [7910] from rjsparks@nostrum.com: Pay attention to group type in all the wginfo functions. Fixes bug ietf-tools#1423.
- Legacy-Id: 7929 Note: SVN reference [7910] has been migrated to Git commit 89c7216
2 parents f8b6eb8 + 89c7216 commit 54b682d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/group/info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def group_charter(request, group_type, acronym):
343343

344344

345345
def history(request, group_type, acronym):
346-
group = get_object_or_404(Group, acronym=acronym)
346+
group = get_object_or_404(Group, type=group_type, acronym=acronym)
347347

348348
events = group.groupevent_set.all().select_related('by').order_by('-time', '-id')
349349

@@ -472,7 +472,7 @@ def make_dot(group):
472472

473473
def dependencies_dot(request, group_type, acronym):
474474

475-
group = get_object_or_404(Group, acronym=acronym)
475+
group = get_object_or_404(Group, type=group_type, acronym=acronym)
476476

477477
return HttpResponse(make_dot(group),
478478
content_type='text/plain; charset=UTF-8'
@@ -481,7 +481,7 @@ def dependencies_dot(request, group_type, acronym):
481481
@cache_page ( 60 * 60 )
482482
def dependencies_pdf(request, group_type, acronym):
483483

484-
group = get_object_or_404(Group, acronym=acronym)
484+
group = get_object_or_404(Group, type=group_type, acronym=acronym)
485485

486486
dothandle,dotname = mkstemp()
487487
os.close(dothandle)

0 commit comments

Comments
 (0)