@login_required
@permission_required("admin.view_domains")
@reversion.create_revision()
def editdomain(request, dom_id):
    domain = Domain.objects.get(pk=dom_id)
    if not request.user.can_access(domain):
        raise PermDeniedException

    instances = dict(general=domain)
    events.raiseEvent("FillDomainInstances", request.user, domain, instances)
    return DomainForm(request, instances=instances).process()
tests that ttls on querysets work as expected
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/views/domain.py/editdomain--crossover with--dataset/ETHPy150Open datastax/python-driver/tests/integration/cqlengine/test_ttl.py/TTLQueryTests.test_update_queryset_ttl_success_case