Revision 704d6ee6

b/snf-astakos-app/astakos/im/management/commands/activateuser.py
32 32
# or implied, of GRNET S.A.
33 33

  
34 34
from django.core.management.base import BaseCommand, CommandError
35
from django.db import transaction
35 36

  
36 37
from astakos.im.functions import activate
37 38

  
......
42 43
    args = "<user id or email> [user id or email] ..."
43 44
    help = "Activates one or more users"
44 45
    
46
    @transaction.commit_manually
45 47
    def handle(self, *args, **options):
46 48
        if not args:
47 49
            raise CommandError("No user was given")

Also available in: Unified diff