Skip to content

Commit 552c0c9

Browse files
committed
Added a GroupHistory.ad_role() method.
- Legacy-Id: 18647
1 parent 1b19353 commit 552c0c9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/group/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ class GroupHistory(GroupInfo):
250250
group = ForeignKey(Group, related_name='history_set')
251251
acronym = models.CharField(max_length=40)
252252

253+
def ad_role(self):
254+
# Note - this shows current ADs, not historic ADs
255+
return self.group.role_set.filter(name='ad').first()
256+
253257
class Meta:
254258
verbose_name_plural="group histories"
255259

0 commit comments

Comments
 (0)