

def get_for_admin(self, admin):
    'Return the domain aliases belonging to this admin.\n\n        The result is a ``QuerySet`` object, so this function can be used\n        to fill ``ModelChoiceField`` objects.\n        '
    if admin.is_superuser:
        return self.get_queryset()
    return self.get_queryset().filter(owners__user=self)

dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/models/domain_alias.py DomainAliasManager.get_for_admin/VarMisuse@40/115 `admin`->`self`