瀏覽代碼

Fixed #15724 -- Added update_wrapper import to utils.functional to be a bit more forgiving for 3rd party apps using that import.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Jannis Leidel 14 年之前
父節點
當前提交
7099d465ab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      django/utils/functional.py

+ 1 - 1
django/utils/functional.py

@@ -1,4 +1,4 @@
-from functools import wraps
+from functools import wraps, update_wrapper
 
 
 
 
 # You can't trivially replace this `functools.partial` because this binds to
 # You can't trivially replace this `functools.partial` because this binds to