Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
f45775e8
Commit
f45775e8
authored
May 14, 2013
by
Giorgos Korfiatis
Browse files
snf_django: Use wraps in transaction decorator
This is to preserve name of called function.
parent
7dbdaacd
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-django-lib/snf_django/lib/db/transaction.py
View file @
f45775e8
...
...
@@ -32,11 +32,13 @@
# or implied, of GRNET S.A.
from
functools
import
wraps
from
django.db
import
transaction
def
commit_on_success_strict
(
**
kwargs
):
def
wrap
(
func
):
@
wraps
(
func
)
@
transaction
.
commit_manually
(
**
kwargs
)
def
inner
(
*
args
,
**
kwargs
):
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment