Commit 8d563ea
committed
Update admin.py
Newer versions of Django no-longer include `update_wrapper`, as it's expected to be provided in the language's standard library.
Here's the error I was getting as of now:
File "/usr/lib/python2.7/site-packages/singleton_models/admin.py", line 5, in <module>
from django.utils.functional import update_wrapper
ImportError: cannot import name update_wrapper
My environment is: Django 1.6.2 final, and Python 2.7.61 parent ff82d22 commit 8d563ea
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments