Revision a3e3917f snf-astakos-app/astakos/im/management/commands/user-add.py
b/snf-astakos-app/astakos/im/management/commands/user-add.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.core.validators import validate_email |
38 | 39 |
from django.core.exceptions import ValidationError |
39 |
from snf_django.lib.db import transaction |
|
40 | 40 |
|
41 | 41 |
from astakos.im.models import AstakosUser |
42 | 42 |
|
... | ... | |
67 | 67 |
help="Add user permission (may be used multiple times)") |
68 | 68 |
) |
69 | 69 |
|
70 |
@transaction.commit_on_success_strict()
|
|
70 |
@transaction.commit_on_success |
|
71 | 71 |
def handle(self, *args, **options): |
72 | 72 |
if len(args) != 3: |
73 | 73 |
raise CommandError("Invalid number of arguments") |
Also available in: Unified diff