Fixed a small issue with the filter expression to select ADs for active groups.

- Legacy-Id: 9181
This commit is contained in:
Henrik Levkowetz 2015-03-11 12:05:20 +00:00
parent e81ac58549
commit c7c89a6250

View file

@ -67,7 +67,7 @@ class AdResponsibleRule(RuleManager):
return Document.objects.filter(type='draft', states__slug='active').filter(ad=self.value).distinct()
def options(self):
return [(i.pk, i.name) for i in Person.objects.filter(role__name='ad',group__state='active').distinct().order_by('name')]
return [(i.pk, i.name) for i in Person.objects.filter(role__name='ad',role__group__state='active').distinct().order_by('name')]
def show_value(self):
try: