Only turns WG and RG groups into links. Fixes bug #1421. Will apply to production as a patch. Commit ready for merge.
- Legacy-Id: 7888
This commit is contained in:
parent
0539390f10
commit
52936f21d1
|
@ -85,7 +85,7 @@ class WGField(DisplayField):
|
|||
rfcDescription = description
|
||||
|
||||
def get_value(self, document, raw=False):
|
||||
if raw:
|
||||
if raw or not document.group.type_id in ['wg','rg']:
|
||||
return document.group.acronym
|
||||
else:
|
||||
return '<a href="%s">%s</a>' % (urlreverse('group_docs', kwargs=dict(group_type=document.group.type_id, acronym=document.group.acronym)), document.group.acronym) if (document.group and document.group.acronym != 'none') else ''
|
||||
|
|
Loading…
Reference in a new issue