def valid_aliases(owner):
    no_expire = Q(expiration_date=None)
    not_expired = Q(expiration_date__lt=datetime.now())
    return Alias.objects.filter(no_expire | not_expired).filter(owner=owner)
Gets the translated unicode representation of the given object.
dataset/ETHPy150Open kapsiry/sikteeri/services/models.py/valid_aliases--crossover with--dataset/ETHPy150Open openstack/python-solumclient/solumclient/openstack/common/gettextutils.py/translate