Revision 321384f9 snf-astakos-app/astakos/im/management/commands/project-admin-checks.py
b/snf-astakos-app/astakos/im/management/commands/project-admin-checks.py | ||
---|---|---|
35 | 35 |
from django.core.management.base import BaseCommand, CommandError |
36 | 36 |
|
37 | 37 |
from astakos.im.functions import check_expiration |
38 |
from astakos.im.project_xctx import project_transaction_context |
|
38 |
from astakos.im.project_xctx import cmd_project_transaction_context
|
|
39 | 39 |
|
40 | 40 |
class Command(BaseCommand): |
41 | 41 |
help = "Perform administration checks on projects" |
... | ... | |
86 | 86 |
if options['expire']: |
87 | 87 |
self.expire(execute=execute) |
88 | 88 |
|
89 |
@project_transaction_context(sync=True) |
|
89 |
@cmd_project_transaction_context(sync=True)
|
|
90 | 90 |
def expire(self, execute=False, ctx=None): |
91 | 91 |
try: |
92 | 92 |
projects = check_expiration(execute=execute) |
Also available in: Unified diff