Commit d11b26d4 authored by Serge S. Koval's avatar Serge S. Koval

Fixed double view wrapping causing _handle_view to be called more than one time

parent d3179a1a
......@@ -51,6 +51,10 @@ def expose_plugview(url='/'):
# Base views
def _wrap_view(f):
# Avoid wrapping view method twice
if hasattr(f, '_wrapped'):
return f
@wraps(f)
def inner(self, *args, **kwargs):
# Store current admin view
......@@ -63,6 +67,8 @@ def _wrap_view(f):
return f(self, *args, **kwargs)
inner._wrapped = True
return inner
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment