Revision a3e3917f snf-astakos-app/astakos/test/views.py

b/snf-astakos-app/astakos/test/views.py
33 33

  
34 34
from datetime import datetime, timedelta
35 35

  
36
from django.db import transaction
36 37
from astakos.im.models import AstakosUser, Project
37 38
from astakos.im.functions import (join_project, leave_project,
38 39
                                  submit_application, approve_application,
39 40
                                  check_pending_app_quota,
40 41
                                  ProjectForbidden)
41
from snf_django.lib.db.transaction import commit_on_success_strict
42 42

  
43 43

  
44
@commit_on_success_strict()
44
@transaction.commit_on_success
45 45
def join(proj_id, user):
46 46
    return join_project(proj_id, user)
47 47

  
48 48

  
49
@commit_on_success_strict()
49
@transaction.commit_on_success
50 50
def leave(memb_id, request_user):
51 51
    return leave_project(memb_id, request_user)
52 52

  
53 53

  
54
@commit_on_success_strict()
54
@transaction.commit_on_success
55 55
def submit(name, user_id, project_id=None):
56 56
    try:
57 57
        owner = AstakosUser.objects.get(id=user_id)
......
79 79
    return app.id, app.chain_id
80 80

  
81 81

  
82
@commit_on_success_strict()
82
@transaction.commit_on_success
83 83
def approve(app_id):
84 84
    approve_application(app_id)

Also available in: Unified diff