From a73b9f5600960ccd29991110bcb0c465251f7f24 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 15 Feb 2018 15:57:03 +0100 Subject: [PATCH] use functools directly --- pandora/oxdjango/decorators.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pandora/oxdjango/decorators.py b/pandora/oxdjango/decorators.py index 55928fb46..1feeee67e 100644 --- a/pandora/oxdjango/decorators.py +++ b/pandora/oxdjango/decorators.py @@ -2,10 +2,8 @@ # vi:si:et:sw=4:sts=4:ts=4 from __future__ import absolute_import -try: - from django.contrib.auth.decorators import wraps -except: - from django.utils.functional import wraps +from functools import wraps + from .shortcuts import render_to_json_response def login_required_json(function=None):