Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong import #14

Closed
nnseva opened this issue May 13, 2013 · 1 comment
Closed

wrong import #14

nnseva opened this issue May 13, 2013 · 1 comment

Comments

@nnseva
Copy link
Contributor

nnseva commented May 13, 2013

The wrong import causes easymode.tree.admin.abstract module unusable in django 1.5

The force_unicode function is wrongly imported from django.utils.translation instead of django.utils.encoding as in other parts of code.

The git-generated diff for necessary changes is present below:

diff --git a/easymode/tree/admin/forms.py b/easymode/tree/admin/forms.py
index 63b52c3..533d5d5 100644
--- a/easymode/tree/admin/forms.py
+++ b/easymode/tree/admin/forms.py
@@ -1,7 +1,7 @@
 from django.core.urlresolvers import reverse
 from django.forms import IntegerField
 from django.forms.models import BaseInlineFormSet
-from django.utils.translation import force_unicode
+from django.utils.encoding import force_unicode

 from easymode.tree.admin.widgets.foreignkey import LinkWidget
@specialunderwear
Copy link
Owner

Thanks, this will be fixed soon. We've just started a django 1.5 project.

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

No branches or pull requests

2 participants