Browse files

Use update_wrapper for the mutually_exclusive decorator

  • Loading branch information...
1 parent f795d36 commit 69e73a2caf32fc024adff3ce23c4fd3b607b0daa @kux committed Feb 14, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 cms/admin/pageadmin.py
View
2 cms/admin/pageadmin.py
@@ -43,6 +43,7 @@
from django.utils.translation import ugettext, ugettext_lazy as _
from menus.menu_pool import menu_pool
import django
+import functools
DJANGO_1_3 = LooseVersion(django.get_version()) < LooseVersion('1.4')
@@ -157,6 +158,7 @@ def wrap(*args, **kwargs):
transaction.rollback()
raise
+ functools.update_wrapper(wrap, func)
return wrap

0 comments on commit 69e73a2

Please sign in to comment.