Revision a3e3917f snf-astakos-app/astakos/im/management/commands/service-import.py

b/snf-astakos-app/astakos/im/management/commands/service-import.py
33 33

  
34 34
from optparse import make_option
35 35

  
36
from django.db import transaction
36 37
from django.core.management.base import BaseCommand, CommandError
37 38
from django.utils import simplejson as json
38 39

  
39
from snf_django.lib.db.transaction import commit_on_success_strict
40 40
from astakos.im.register import add_service, add_resource, RegisterException
41 41
from astakos.im.models import Component
42 42
from ._common import read_from_file
......
52 52
                    help="Load service definitions from a json file"),
53 53
    )
54 54

  
55
    @commit_on_success_strict()
55
    @transaction.commit_on_success
56 56
    def handle(self, *args, **options):
57 57

  
58 58
        json_file = options['json']

Also available in: Unified diff