Revision a3e3917f snf-astakos-app/astakos/im/management/commands/project-control.py

b/snf-astakos-app/astakos/im/management/commands/project-control.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 astakos.im.functions import (terminate, suspend, unsuspend,
38 39
                                  reinstate, check_expiration,
39 40
                                  approve_application, deny_application)
40
from snf_django.lib.db.transaction import commit_on_success_strict
41 41

  
42 42

  
43 43
class Command(BaseCommand):
......
86 86
                          "e.g. when denying a project")),
87 87
    )
88 88

  
89
    @commit_on_success_strict()
89
    @transaction.commit_on_success
90 90
    def handle(self, *args, **options):
91 91

  
92 92
        message = options['message']

Also available in: Unified diff