Skip to content

Conversation

@mcnemesis
Copy link

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.6

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.6
@defbyte
Copy link
Owner

defbyte commented Mar 24, 2014

Hi there, thanks very much for the Pull Request!

I need to test to make sure this change is backwards compatible, back to Django 1.3, before accepting.

defbyte added a commit that referenced this pull request Mar 24, 2014
Newer versions of Django no-longer include `update_wrapper`, as it's expected to be provided in the language's standard library.  Thanks to @mcnemesis
@defbyte defbyte merged commit c78a65b into defbyte:master Mar 24, 2014
@defbyte
Copy link
Owner

defbyte commented Mar 24, 2014

Update version tagged (0.1.8) and pushed to Pypi:
https://pypi.python.org/pypi/django-singleton/0.1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants