Revision a3e3917f snf-astakos-app/astakos/im/management/commands/reconcile-resources-astakos.py

b/snf-astakos-app/astakos/im/management/commands/reconcile-resources-astakos.py
34 34
from optparse import make_option
35 35

  
36 36
from django.core.management.base import BaseCommand, CommandError
37
from django.db import transaction
37 38

  
38 39
from snf_django.management.utils import pprint_table
39
from snf_django.lib.db.transaction import commit_on_success_strict
40 40
from astakos.im.models import Component, AstakosUser
41 41
from astakos.im.quotas import service_get_quotas, SYSTEM
42 42
from astakos.im.functions import count_pending_app
......
67 67
                         " the quota, independently of their value.")
68 68
    )
69 69

  
70
    @commit_on_success_strict()
70
    @transaction.commit_on_success
71 71
    def handle(self, *args, **options):
72 72
        write = self.stdout.write
73 73
        force = options['force']

Also available in: Unified diff