forked from 0x2620/pandora
use functools directly
This commit is contained in:
parent
03d5c677aa
commit
a73b9f5600
1 changed files with 2 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue