Added a GroupHistory.ad_role() method.
- Legacy-Id: 18647
This commit is contained in:
parent
1b19353382
commit
552c0c9d70
|
@ -250,6 +250,10 @@ class GroupHistory(GroupInfo):
|
|||
group = ForeignKey(Group, related_name='history_set')
|
||||
acronym = models.CharField(max_length=40)
|
||||
|
||||
def ad_role(self):
|
||||
# Note - this shows current ADs, not historic ADs
|
||||
return self.group.role_set.filter(name='ad').first()
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural="group histories"
|
||||
|
||||
|
|
Loading…
Reference in a new issue