Add get_rfc_number helper by Ryan Cross

- Legacy-Id: 3797
This commit is contained in:
Ole Laursen 2012-01-06 12:19:23 +00:00
parent f3a26cc3fa
commit 19150dc10f

View file

@ -49,3 +49,6 @@ def active_ballot_positions(doc):
return res
def get_rfc_number(doc):
qs = doc.docalias_set.filter(name__startswith='rfc')
return qs[0].name[3:] if qs else None