@@ -97,7 +97,6 @@ def document_main(request, name, rev=None):
9797 if a .startswith ("rfc" ):
9898 return redirect ("doc_view" , name = a )
9999
100- group = doc .group
101100 if doc .type_id == 'conflrev' :
102101 conflictdoc = doc .related_that_doc ('conflrev' )[0 ].document
103102
@@ -131,6 +130,9 @@ def document_main(request, name, rev=None):
131130 if gh :
132131 group = gh
133132
133+ # set this after we've found the right doc instance
134+ group = doc .group
135+
134136 top = render_document_top (request , doc , "document" , name )
135137
136138
@@ -244,7 +246,7 @@ def document_main(request, name, rev=None):
244246 elif group .type_id in ("rg" , "wg" ):
245247 submission = "%s %s" % (group .acronym , group .type )
246248 if group .type_id == "wg" :
247- submission = "<a href=\" %s\" >%s</a>" % (urlreverse ("group_home" , kwargs = dict (group_type = doc . group .type_id , acronym = doc . group .acronym )), submission )
249+ submission = "<a href=\" %s\" >%s</a>" % (urlreverse ("group_home" , kwargs = dict (group_type = group .type_id , acronym = group .acronym )), submission )
248250 if doc .stream_id and doc .get_state_slug ("draft-stream-%s" % doc .stream_id ) == "c-adopt" :
249251 submission = "candidate for %s" % submission
250252
0 commit comments